Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
Open the pdf export report in new browser window
posted

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

 

Parents
No Data
Reply
  • 19308
    posted

    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

Children