Setting the bin to print from
I am trying to set up the printer to use the bin that the user has preselected.
This doesn't seem to be part of the print options, so I browsed the source and found that this information is taken from the report pages. With this information I looped through the pages of the report and set the Bin property to the desired one (tried to do this before and after preparing the report) . However, when I press print in the preview window SetPrintParams() is called with Bin set to DMIBN_AUTO which is a different value.
Anyone knows how to do this? There should be an easy way to do this, maybe I'm on the wrong track.
I'm on Delphi 2010 by the way.
BR
/Zalzero
Edit: It seems I did this on the wrong place, and this eventually worked after manipulating the report pages properly. However it seems a bit strange that you set the bin on the pages and not in the printer options :S.
This doesn't seem to be part of the print options, so I browsed the source and found that this information is taken from the report pages. With this information I looped through the pages of the report and set the Bin property to the desired one (tried to do this before and after preparing the report) . However, when I press print in the preview window SetPrintParams() is called with Bin set to DMIBN_AUTO which is a different value.
Anyone knows how to do this? There should be an easy way to do this, maybe I'm on the wrong track.
I'm on Delphi 2010 by the way.
BR
/Zalzero
Edit: It seems I did this on the wrong place, and this eventually worked after manipulating the report pages properly. However it seems a bit strange that you set the bin on the pages and not in the printer options :S.
Comments