General information
Category:
Coding, syntax & commands
>>My application enables users to select the names of one or more reports from a grid and to click the "PRINT" button to sent the reports to a printer. The users requires that, before the reports are printed, they can select the printer and change the page settings.
>>
>>The following code will pop out the "Print Setup" dialog box for every selected report: REPORT FORM myreport NOCONSOLE TO PRINTER PROMPT. Since multiple reports can be selected at one time, it is not acceptable.
>>
>>I have used the following code in the CLICK event of the PRINT button: SET PRINTER TO NAME GETPRINTER(). As a result, users are able to select the printer to use; however, all the changes they make about the Paper Size, Orientation, etc. are not in effect at all. According to the HELP, PRINTINFO() command tells the settings but the Print Setup dialog box is the place to change the settings.
>>
>>I suspect that my SET PRINTER... statment only changes the printer while the page settings are not actully changed until I issue a statement like: SET ORIENTATION... There is no such a command and I have no idea how to capture the setting values in the dialog box except for that of the printer driver.
>>
>>I have noticed that people at this forum have had similar problems. Anyone can help me with this? (BTW, I am using VFP3.) Thank you!
>
>I'm not sure that I completely understood the problem. Do you want your users could apply different print setting to each selected report or you want them to set common setting for all selected reports at once?
To set common settings for all selected reports at once.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only