Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

module Fortran_WinPrint question

ahasan
Beginner
295 Views
I am using the following steps to initiate the Print Dlg box with landscape paper orientation:
1) call PrintDlg() with flag PD_RETURNDEFAULT set
2) modify DevMode structure for landscape paper orientation
3) call PrintDlg() with PD_RETURNDEFAULT flag removed and allow user to select printer
In Steve Lionel's module Fortran_WinPrint example, DocumentProperties() and ResetDC() are called after modifying the Devmode structure. I don't believe calling DocumentProperties() and ResetDC()is necessary after my step 2 above sinceI amjust setting up the Print Dlg box for landscape paper orientation and not initializing the printer.
Can I skip the DocumentProperties() and ResetDC() codewhen just setting up the Print Dlg box? Just wanted to check to make sure I was not missing something.
Thanks for a reply.
0 Kudos
2 Replies
Paul_Curtis
Valued Contributor I
295 Views
Here is a utility routine for printer setup, in which the user can specify the page orientation, which is then returned to the caller.
0 Kudos
ahasan
Beginner
295 Views
Paul, thanks for the reply and the well organized example code.
0 Kudos
Reply