February 17, 2005 at 12:33 am
well i ve a little problem but to explain it first let me tell u little background of the problem for better understanding
if u access the report using URL u ve FORMAT combo box ZOOM combobox and buttons for PAGE NAVIGATION but in my case i dont want to use URL for report access so i used report service class (SOAP API) and customize the page by putting my own combo boxes for FORMAT and ZOOMING and buttons FOR NAVIGATION but like URL ACCESS i cant put there how many pages r in the report and control NAVIGATION as per requirement. plz can anyone help me HOW CAN I GET INFO IN .NET ABOUT NO. OF PAGES GENERATED BY THE REPORT FOR SPECIFICE PARAMETERS INPUT AT SPECIFIC TIME. i m really in trouble plz need ur assistance.thanx in advance for the help
February 21, 2005 at 8:00 am
This was removed by the editor as SPAM
March 29, 2005 at 7:31 pm
did you ever get an answer to your question?
March 29, 2005 at 9:25 pm
well i ve used another simpler way in my report for which i want to calculate total no of pages through reporting services class i put a textbox in the page header of the report which is carrying value = "XXX_Pages(" & TOTAL PAGES & ")XXX_Pages)"
where "XXX_Pages(" is used to recognize as start of the TOTAL PAGES VALUE when scraping the HTML generated through the render method of the reporting service and ")XXX_Pages" is used to know where the TOTAL PAGES value is ending and TOTAL PAGES is the global variable of the reports which is carrying the total no of pages
then i call the render method of reporting service which returns report data in BYTES then i convert this data to HTML (STRING) by using encoding class of .net and evaluate the index value of "XXX_PAGES(" and ")XXX_pages" and by using substring function starting from index value of "XXX_PAGES(" to that of ")XXX_PAGES" i m actually retreiving the TOTAL PAGES VALUE (that i declared in reports which calculate to total no of pages)
for user i m putting this TEXTBOX forecolor and font color property to white so that user couldnt see this value( as its not meaningful for users who r viewing the report its for only developers purpose to evaluate total no of pages) v cant put the hidden property of this textbox to true coz by doing so actually we r not getting the value of this text box in the bytes returned by render method
i hope this ll answer the question
regards
March 30, 2005 at 8:01 am
Not sure if it helps anymore, but found Bryan Keller post where he rendered to EMF and worked out that coutning the subequent streamID's give you the count of pages. See http://www.csharphelp.com/archives3/archive545.html for how they did it.
Steve.
March 30, 2005 at 9:50 pm
well thanx steve for participation i ve seen that article and its also too good but the only problem is the format i mean u got to give output in emf format though its not a problem as such but if u wanted reports to b embeded in a webpage using HTML format in render method u can use the above mentioned technique
now i ve felt one advantage of using HTML format over EMF but i m not sure it really exists or not once i get the HTML output from the render method i can manipulate that HTML output in my own way(Lets suppose changing anything or hiding anything eg i want to open all the links in my report to a new page) that could b done easily if u ve HTML output instead of EMF
all in all the option u gave is absolutely working and correct
well guys now u ve two techniques (options) to count total no of pages of the report using render method of reporting service hope problem is resolved
take care all of u thanx for participation n keep helping
regards
hammad
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply