MangroBongacello
Programmer
Hi,
is it possible to determine the number of pages to be printed before using DataReport.PrintReport?
Namely, what I need to do is I need to set the top margin for the first page to some value and top margin for the remaining pages to another value. I was thinking I could first print page 1 (DataReport.PrintReport, rptRangeFromTo, 1, 1), then set the top margin to another value and then print remaining pages (Datareport.PrintReport, rptRangeFromTo, 2, 500). But this only works if the report is > 1 pages long, otherwise in prints the first page on the second PrintReport again, although it says From page 2 (I guess this is a bug). So if I could get the number of pages report will have, I could use different procedures if report is 1 page long and another if report is > 1 pages long.
Any ideas?
Or maybe, does someone have a cmpletely different solution to my TopMargin problem.
Thank you
Mangro
is it possible to determine the number of pages to be printed before using DataReport.PrintReport?
Namely, what I need to do is I need to set the top margin for the first page to some value and top margin for the remaining pages to another value. I was thinking I could first print page 1 (DataReport.PrintReport, rptRangeFromTo, 1, 1), then set the top margin to another value and then print remaining pages (Datareport.PrintReport, rptRangeFromTo, 2, 500). But this only works if the report is > 1 pages long, otherwise in prints the first page on the second PrintReport again, although it says From page 2 (I guess this is a bug). So if I could get the number of pages report will have, I could use different procedures if report is 1 page long and another if report is > 1 pages long.
Any ideas?
Or maybe, does someone have a cmpletely different solution to my TopMargin problem.
Thank you
Mangro