jbeane
asked on
Changing Printer orientation
Accessing a TPrinter object thru a TPrintDC object, I need to be able to change the printer orientation based on real-time information. What command / function is it that allows this? I believe I could get the the orientation using the GetDeviceCaps(DC_ORIENTATI ON) function, but I have no idea to get it!
ASKER
Adjusted points to 100
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
My actual implementation was as follows:
DEVMODE *devMode = (DEVMODE *)Printer->GetSetup().GetD evMode();
devMode->dmOrientation = Orientation;
//Initialize Printer Dc
DC = new TPrintDC( Printer->GetSetup().GetDri verName(),
Printer->GetSetup().GetDev iceName(),
Printer->GetSetup().GetOut putName(),
devMode);
Thanks for the help
DEVMODE *devMode = (DEVMODE *)Printer->GetSetup().GetD
devMode->dmOrientation = Orientation;
//Initialize Printer Dc
DC = new TPrintDC( Printer->GetSetup().GetDri
Printer->GetSetup().GetDev
Printer->GetSetup().GetOut
devMode);
Thanks for the help
ASKER