shetlandbob
Programmer
Ive got a DHTML application in my MFC project which I load html into (that I create locally), then I use the following code to print them.
This works and it send the data to the default printer, deos anyone know how I can change the printer details, i.e. landscape, portrait?
Also is there an easy way of scaling down the size of the text that is printed? Or a way of making sure all my html document is printed? Because if it is to wide for then the printer just ignores a lot of the text?
Code:
tagVARIANT print;
VariantInit(&print);
print.vt = VT_BSTR;
print.bstrVal = fileName.AllocSysString( );
dhtml->PrintDocument( &print );
VariantClear ( &print );
This works and it send the data to the default printer, deos anyone know how I can change the printer details, i.e. landscape, portrait?
Also is there an easy way of scaling down the size of the text that is printed? Or a way of making sure all my html document is printed? Because if it is to wide for then the printer just ignores a lot of the text?