Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Friday, March 23, 2012

Export an already rendered report with webservice not using reportviewer

How do I export a rendered html report using webservice to other formats? If I render the report again to other formats, the data in the report might have changed since the first execution.Hi,

I don′t know if I got you right at this point, so just for clarification: You already rendered a report and it is present as HTML files and images on your disk. Now you want to take this HTML file and put it in a rendering machine to get something else than HTML, like pdf, etc ? Not his is not possible, what you can do is to import the data in an Excel file (if the data is structured like in a table)

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de
|||Yes, you've got my question right. Since this is not possible, how does the reportviewer control export reports? Is there any api methods that I can make use of?

Sunday, February 26, 2012

Expand and collapse

My users want to be able to view a report in html and have the rows
expand and collapse on certain information. However they want to be
able to view the same report in PDF mode and be able to view all of the
drill down rows.
So my question is this is there a way to have a master expand and
collapse button so that the users would click it to make all of the
rows visible before exporting to PDF of do I need to create a second
report that does not collapse the rows and just have it linked to that
in PDF format?There is a way to have a "master expand all" button:
Assuming a table control is used:
1) Add a top group to your table and set expression to "=Nothing" and
check the include group header checkbox
2) Type in the top left textbox, we'll call it TxtAll, in the group
header for the new group "Expand All" (You could also leave it blank so
it doesn't look awkward on exported report)
3) Insert a new row under your details row in the table and duplicate
all of the fields exactly
4) For second detail tablerow, set Visibility-->Hidden to True and set
ToggleItem to txtAll
5) For all the textboxes in second detail row, set Visibility-->Hidden
to True and set ToggleItem to txtAll
6) For first detail tablerow, set Visibility-->Hidden to True and set
ToggleItem to txtAll
7) For all of the textboxes in the first detail row, set
Visibility-->Hidden to True and set ToggleItem to whatever textbox your
current report is using to toggle
Now the user can drill-down to any detail row or get all rows expanded
by clicking on the Expand All