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
525
When Exporting to Ultrawebgrid to PDF getting Error
posted

Hi,

I am using Infragistics v8.2

Issue: When Exporting Ultrawebgrid to PDF i am getting one error like this

'/MyApplication/WebResource.axd?d=0OvaBzWedBe5DVsmUEiun0ptzBzkiEDIJEc0D-xnRNzM-r04xHi-vgwCBzf-EtOtOLXQrknP9-8P0RxRmaCi1A2&t=633398816440000000' is not a valid virtual path

and the code i had used is

Infragistics.WebUI.UltraWebGrid.DocumentExport.UltraWebGridDocumentExporter exp = new Infragistics.WebUI.UltraWebGrid.DocumentExport.UltraWebGridDocumentExporter();

exp.ExportMode = Infragistics.WebUI.UltraWebGrid.Exporter.ExportMode.Download;

exp.Format = Infragistics.Documents.Report.FileFormat.PDF;exp.DownloadName = "Reportname";

exp.Export(ultrawebgrid1);

instead of this i had used DocumentExporter control  then also i am getting same issue

Please help me .....

Thanks, regards

Sivaprasad 

 

Parents
No Data
Reply
  • 845
    posted

     Try to add the exporter as a Global  variable of the form and create and add it from the CreateChildControls or CreateControls event of the form... I am working with Web Parts and I have to override the RenderControl event of the form, if you do this too be sure you are render the Exporter control in this event.

     

            protected override void CreateChildControls()
            {
                base.CreateChildControls();

                excelExporter = new UltraWebGridExcelExporter("ExcelExporter");
                this.Controls.Add(excelExporter);

            }

      public override void RenderControl(HtmlTextWriter writer)
            {
                this.excelExporter.RenderControl(writer);

            }

     

Children
No Data