hi, i want to export a webdatagrid (it has paging) to a pdf. i use the following settings for the webdocumentexporter.
WebDocumentExporter1.DownloadName =
HttpUtility.UrlEncode(fileName)
WebDocumentExporter1.Format = Infragistics.Web.UI.GridControls.
FileFormat.PDF
WebDocumentExporter1.DataExportMode =
DataExportMode.DataInGridOnly
WebDocumentExporter1.ExportMode =
ExportMode.Download
WebDocumentExporter1.TargetPaperOrientation =
PageOrientation.Landscape
WebDocumentExporter1.Export(
Me.WebDataGrid1, Me.WebDataGrid1)
when i export i got the following error. (sorry in german)
G:/xxxxx/ig_res/Default ist ein physikalischer Pfad, es wurde aber ein virtueller Pfad erwartet.
i use v10 vol3
thanks martin
hey Martin,
How do you set the location of the StyleSetPath ? Do you point to G:/ directly ? I suggest several solutions:
1) If you don't want styles to be exported, you can just disable it by setting EnableStylesExport = false
2) you can point StyleSetPath to a local directory, and copy ig_res there , such as StyleSetPAth="~/ig_res/"
3) The best alternative - add G:/<path to your styles> as a Virtual Directory in IIS, and point StyleSetPAth to it in the following way:
StyleSetPath="http://localhost/ig_res/"
Hope it helps,
Angel
wouh that was a fast reply. is that correct that i have to set the stylesetpath on the webdatagrid,or?but i have try itwebdatagrid.StyleSetPAth="~/ig_res/" (i have the ig_res in the main path of my web. but i've got still the error.i will try a little bit and if its not work i try it with the localhost tip
Still the same error. i setMe.WebDataGrid1.StyleSetPath = "http://localhost/ig_res/"
Still the same error , i placed everywhere the ig_res folder and set it in code everywhere. but still
G:/xxxxxx/yyyyy/css ist ein physikalischer Pfad, es wurde aber ein virtueller Pfad erwartet.i dont't know he wants always the folder yyyy/css ???
Hi neharoy,
What exactly are you doing? Changing the stylesetpath?
regards,David Young
Did you manage to find a solution for this. I am facing same problem.
Hello martin2004,
I have create case: CAS-56039-6ZD7R1. We are going to continue communication through this support ticket.
Regards