Hello ~
I'm trying to get my Printer to take the PaperSize of each Document coming in. I have found a way using the SetPaperSize() and SetDefaultConfig(). However this is problematic for several reasons:
1) The setting is not taking effect for the first Document printed, but for all subsequent Documents. For example let's say that the Printer default is Letter. To change the setting to A4 using the method above would first produce a Letter size, then A4 for anything printed after that. However, if you wish to change back to Letter, the first Document sent through will still print as A4, and the next as Letter, etc.
2) I've read also in the documentation that this way of setting should only be used on Initialization of the Printer, not for every Document sent through. It is Resource consuming.
Is there a way to set the Printer to take the paper size defined by the Document being sent to it? This would be the ideal solution -- especially if it can be set when the Printer is being created.
Thank you in advance for any suggestions ~
Aubrey
Printer setting to take the PaperSize from the Document
Hello,
If you don't use SetPaperSize and SetDefaultConfig() the printer will take whatever the printing application sends. So if your printing application uses the default printer settings the output will be as whatever is set in the printer configuration and if your application (like Word by example) use its own settings, the output will be the same as what setting are in the Page setup by example.
Hope this helps.
If you don't use SetPaperSize and SetDefaultConfig() the printer will take whatever the printing application sends. So if your printing application uses the default printer settings the output will be as whatever is set in the printer configuration and if your application (like Word by example) use its own settings, the output will be the same as what setting are in the Page setup by example.
Hope this helps.
Printer setting to take the PaperSize from the Document
Unfortunately, I have not gotten this to work.
The documents I have are reports -- information being dumped into a Crystal Reports template that is then generated into a PDF using the Printer Driver.
If I allow the Printer to take the defaults defined by the regional language settings of the computer it's installed on, all documents are generated with the default setting.
These reports are either Letter or A4 formatting within the template report. However, once it is sent to the Printer, it is taking the defaut Printer setting -- reguardless of the format set in the template.
Currently this is happening in v210e. I'm in the process of getting the upgrade setup to run. But all the documentation I have found says that this should be working in the 2.1 version also.
What else do I have to do?
Thanks,
Aubrey
The documents I have are reports -- information being dumped into a Crystal Reports template that is then generated into a PDF using the Printer Driver.
If I allow the Printer to take the defaults defined by the regional language settings of the computer it's installed on, all documents are generated with the default setting.
These reports are either Letter or A4 formatting within the template report. However, once it is sent to the Printer, it is taking the defaut Printer setting -- reguardless of the format set in the template.
Currently this is happening in v210e. I'm in the process of getting the upgrade setup to run. But all the documentation I have found says that this should be working in the 2.1 version also.
What else do I have to do?
Thanks,
Aubrey