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
65
Always get error "Cannot use a leading .. to exit above the top directory"
posted

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.DownloadName =
"aaabbb.pdf";

UltraWebGridDocumentExporter1.Format = Infragistics.Documents.Report.FileFormat.PDF;

UltraWebGridDocumentExporter1.TargetPaperOrientation = Infragistics.Documents.Report.PageOrientation.Landscape;

UltraWebGridDocumentExporter1.ExportMode = ExportMode.Custom;

UltraWebGridDocumentExporter1.Export(gridEvent);