C
Carl Rapson
I have a report that contains 10 columns of data for each row. I don't
always need 10 columns, however, so in the Report_Open event I am hiding
some of the columns. I also shorten some lines by the width of the hidden
columns. When I run this report by itself everything works as I expect it
to. When I embed this as a subreport in another report, however, I encounter
a problem. When I do a Print Preview of the report/subreport, everything
looks OK on screen. But if I then print the report from the Preview mode, it
looks like the lines in the subreport are being shortened a second time.
This only seems to happen when I print from Print Preview mode -- if I send
the report straight to the printer (no preview), it doesn't happen. I've
tried trapping the Report_Open event of the subreport, but it only seems to
be firing once. Any ideas as to why my lines would be adjusted a second time
only when printing the report/subreport from Print Preview mode? Do I maybe
need to adjust my controls in an event other than Report_Open?
Thanks for any assistance,
Carl Rapson
always need 10 columns, however, so in the Report_Open event I am hiding
some of the columns. I also shorten some lines by the width of the hidden
columns. When I run this report by itself everything works as I expect it
to. When I embed this as a subreport in another report, however, I encounter
a problem. When I do a Print Preview of the report/subreport, everything
looks OK on screen. But if I then print the report from the Preview mode, it
looks like the lines in the subreport are being shortened a second time.
This only seems to happen when I print from Print Preview mode -- if I send
the report straight to the printer (no preview), it doesn't happen. I've
tried trapping the Report_Open event of the subreport, but it only seems to
be firing once. Any ideas as to why my lines would be adjusted a second time
only when printing the report/subreport from Print Preview mode? Do I maybe
need to adjust my controls in an event other than Report_Open?
Thanks for any assistance,
Carl Rapson