Hi,
I have a webgid that I export to a pdf document for printing purposes. I set the property as this:
UltraWebGridDocumentExporter1.ExportMode = Infragistics.WebUI.UltraWebGrid.Exporter.ExportMode.InBrowser;
This opens the report in the same window and I have to close the whole app to exit out of this pdf file. Any ideas how I can export it to a new window so that I don't have close the whole app to exit out of the pdf?
Gauri
Gauri,
The trick is to use a link to launch the export, rather than a button. You can use a querystring param to indicate that you want to generate a report. here's an example.
<a href="default.aspx?report=true" target="_blank" >click to generate pdf report</a>
Hope this helps,
-Tony
Hi Tony,
Thanks for your reply. The design requirements for the report page state to use a button. So I won't be able to use the link. Any other options?
You can always wrap a button in a hyperlink, or style the hyperlink to look like a button.
I am new to Infragistics and I have a similar project specification as in this post.
I am using the hyperlink technique you mentioned to open the PDF in new window. I am using the below code to get the grid information displayed in the new window in the PDF format. As you mentioned in the post, I am passing a query string to check if the report needs to be generated. The issue is instead of getting the grid information from the parent window the code looks for the grid in the current active window.
* Do you have a way to by pass this? Do you have any examples?
* How can I get the grid to display pdf in the new window using the hyperlink technique?
Any help Opening Pdf in new browser window is truly appreciated.
Me.UltraWebGridDocumentExporter1.Export(Me.UltraWebGrid1)
Thanks,
GP
Can anyone explain me how to open a pdf export into a new window