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
5549
Export gives me an Error
posted

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

Parents
No Data
Reply
  • 24671
    posted

    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

     

Children