crystal reports totalPageCount
-
hi! k, i googled it, i CPed it and couldn't find it.. i've got this code:
CrReport report = new CrReport(); // do sth with report int copies = 1; bool collated = false; int pageFrom = 1; int pageTo = 1; report.PrintToPrinter(copies, collated, pageFrom, pageTo);
my problem is that i want to print all the pages of a report.. so i'd have to set pageTo to value of totalPageCount of the report.. but in the report object i can't find any property that would give me this value.. anyone knows how to get that totalPageCount value? thx for any help!!life is study!!!
-
hi! k, i googled it, i CPed it and couldn't find it.. i've got this code:
CrReport report = new CrReport(); // do sth with report int copies = 1; bool collated = false; int pageFrom = 1; int pageTo = 1; report.PrintToPrinter(copies, collated, pageFrom, pageTo);
my problem is that i want to print all the pages of a report.. so i'd have to set pageTo to value of totalPageCount of the report.. but in the report object i can't find any property that would give me this value.. anyone knows how to get that totalPageCount value? thx for any help!!life is study!!!
Have search on MSDN? You have to put value 0 on pagefrom and pageto
Visit my blog at http://dotnetforeveryone.blogspot.com/