Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing from DHTML

Status
Not open for further replies.

shetlandbob

Programmer
Mar 9, 2004
528
GB
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.

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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top