I have a report with two sub-reports, When previewing the report, the users changes the printer, Everything is printed ok except the second subreport in the report which uses paper from a different tray, What could be the problem?
If the second subreport is a Section style subreport, be sure you do not have the SubReport.NewPrintJob set to False. If this is not the case, please send a small example of this behavior to support@digital-metaphors.com and I will try it on my machine.
I don't understand (be sure you do not have the SubReport.NewPrintJob set to False). So you say, set NewPrintJob to true. When setting this property to true, the subreport behaves like a seprate print job, does it then take they printersettings of the main report?
The user selects a different printer/tray bacause "ShowPrintDialog" is true. The first subreport (having all properties the same as the second one) is printed on paper coming from the selected printer/tray, only the second one not ). I can't test this by my self because i don't have a printer with multiplay papertrays (my customer does).
Sorry, I was fishing for clues on what was happening and I blew it . If the second subreport (the one that is printing from the separate bin) is a section subreport with NewPrintJob set to True, it could be causing the problems. Other than that, ReportBuilder only creates one print job for each report so it would not be possible for a subreport to have different print settings than the main report. If the problem still persists, please send an example of this report to me at support@digital-metaphors.com and I'll try it on my multiple bin printer.
I'm gonna try creating a simple example. The form on which the report resides is part of a framework. I will send you the code (and database ) as soon as possible.
Comments
If the second subreport is a Section style subreport, be sure you do not
have the SubReport.NewPrintJob set to False. If this is not the case,
please send a small example of this behavior to
support@digital-metaphors.com and I will try it on my machine.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I don't understand (be sure you do not have the SubReport.NewPrintJob set to
False).
So you say, set NewPrintJob to true. When setting this property to true, the
subreport behaves like a seprate print job, does it then take they
printersettings of the main report?
The user selects a different printer/tray bacause "ShowPrintDialog" is
true. The first subreport (having all properties the same as the second one)
is printed on paper coming from the selected printer/tray, only the second
one not ). I can't test this by my self because i don't have a printer with
multiplay papertrays (my customer does).
Eric
Sorry, I was fishing for clues on what was happening and I blew it . If
the second subreport (the one that is printing from the separate bin) is a
section subreport with NewPrintJob set to True, it could be causing the
problems. Other than that, ReportBuilder only creates one print job for
each report so it would not be possible for a subreport to have different
print settings than the main report. If the problem still persists, please
send an example of this report to me at support@digital-metaphors.com and
I'll try it on my multiple bin printer.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I'm gonna try creating a simple example. The form on which the report
resides is part of a framework.
I will send you the code (and database ) as soon as possible.
Eric