Hey guys,
I tried using UltraWebGridDocumentExporter control to export content from a webgrid control (Please see below code snip). But, I got an error message "Cannot use a leading .. to exit above the top directory" Any suggestions will be appreciated.
UltraWebGridDocumentExporter1.Format = Infragistics.Documents.Report.FileFormat.PDF;
UltraWebGridDocumentExporter1.ExportMode = ExportMode.Custom;
UltraWebGridDocumentExporter1.Export(gridEvent);
OK, the example wasn't working into a WebApplication project, I put it into a WebSite and it's OK.
But...
When the simple page is converted into UserControl, and you try to export in pdf it Prompt a message: Do you want to open or save pdf file.
And if you select the Open option an error is thrown.
The Adobe Reader say: There was an error opening this document. This file cannot be found.
Any help!?
Other things that I found while triyng to activate the pdf export in my project are:
- In the UltraGridBand tag you should specify the BaseTableName and Key (I'm not sure about the Key but I didn't try without it)
- When I have OnPrerender event handler the pdf document is empty.
This is from me so far, I'll keep on trying to activate the export to all my grids.
Regards, Iva
Hi, I look the examples with grid export in Infragistics Samples
I copied the code into my project and I try to export in pdf like it shown in the sample.
And what do you thing happens: it throws exception:
Line 46: Line 47: // trigger exportLine 48: UltraWebGridDocumentExporter1.Export(UltraWebGrid1);Line 49: }Line 50:
So, gays try to find different way to export in pdf, the DocumentExporter just doesn't work, even with the Infragistics example source.
My current version of Infragistics is 35, but I test this with previous versions too, and it doesn't work either.
Hi, I got the same problem. Can anybody help me out please.
Thanks