Hi,
I have WebHierarchicalDataGrids on a page that I would like to export to PDF, when do so, I receive the following error:
Error message: 'C:\ProjectPath' is not a valid virtual path. - /PageName.aspx
Source:
Class: VirtualPath
Method: Create
Help link:
Inner exception: System.Web.HttpException: 'C:\ProjectPath' is not a valid virtual path.
The grid and document exporter:
The grid and the document exporter are on the same asp:UpdatePanelThe grid does have a custom pager like the one of the samples (WebDataGrid)The grid uses a DataSet as DataSource that I rebind on every PostBack.
<ig:WebHierarchicalDataGrid ID="whdg" runat="server" Width="980px" AutoGenerateColumns="False" AutoGenerateBands="false" EnableAjax="true" EnableAjaxViewState="true" EnableTheming="true" EnableDataViewState="true" StyleSetName="Claymation" DataKeyFields="ID" InitialExpandDepth="0" InitialDataBindDepth="0" OnInitializeRow="whdg_InitializeRow" OnColumnSorted="whdg_ColumnSorted">
<ExpandCollapseAnimation SlideOpenDirection="Auto" SlideOpenDuration="300" SlideCloseDirection="Auto" SlideCloseDuration="300"/>
<AjaxIndicator Enabled="True"/>
<Behaviors>
<ig:Activation Enabled="false">
</ig:Activation>
<ig:Sorting Enabled="true" SortingMode="Single">
<ColumnSettings>
<ig:SortingColumnSetting ColumnKey="TipoImage" Sortable="true"/>
<ig:SortingColumnSetting ColumnKey="Usuario" Sortable="true"/>
<ig:SortingColumnSetting ColumnKey="FechaHora" Sortable="true"/>
<ig:SortingColumnSetting ColumnKey="Accion" Sortable="true"/>
<ig:SortingColumnSetting ColumnKey="Mensaje" Sortable="true"/>
</ColumnSettings>
</ig:Sorting>
<ig:Paging Enabled="true">
<PagerTemplate>
<ag:WebDataGridPaginacion ID="whdgPaginacion" runat="server" OnPageChanged="whdgPaginacion_PageChanged"/>
</PagerTemplate>
</ig:Paging>
</Behaviors>
<EmptyRowsTemplate><div style="text-align:center;width:980px;padding:45px 0">No hay datos disponible.</div></EmptyRowsTemplate>
<Columns>
<ig:BoundDataField Key="ID" DataFieldName="SeguimientoID" Hidden="true"/>
<ig:BoundDataField Key="TipoImage" DataFieldName="Tipo" Header-Text="Tp" Width="36px"/>
<ig:BoundDataField Key="Usuario" DataFieldName="Usuario" Header-Text="Usuario" Width="142px"/>
<ig:BoundDataField Key="FechaHora" DataFieldName="FechaHora" Header-Text="Fecha y hora" Width="140px" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}"/>
<ig:BoundDataField Key="Accion" DataFieldName="Accion" Header-Text="Acción" Width="180px"/>
<ig:BoundDataField Key="Mensaje" DataFieldName="Mensaje" Header-Text="Mensaje" Width="452px"/>
</Columns>
</ig:WebHierarchicalDataGrid>
<ig:WebDocumentExporter ID="WebDocumentExporter1" runat="server" ExportMode="Download" DataExportMode="AllDataInDataSource" TargetPaperSize="A4" TargetPaperOrientation="Portrait" EnableStylesExport="true" Format="PDF"/>
Version: 10.3.20103.2105
Hi esanito,
I am not sure what could be the problem by looking at this code. I know we have released a more recent Service Release. It is possible that it has this issue resolved, but I am not sure. If you could attach a working sample, I will gladly take a look and submit a bug on your behalf if I can reproduce the issue.
regards,
David Young
I've upgraded to version: 10.3.20103.2120 and the problem remains.
I pass you a screenshot of a part of the IntelliTrace information.
Hi estanito,
This screenshot looks like it confirms the error, but it gives no help in identifying the code where it occurs. It seems to be a problem with styles. Do you have any custom css classes defined or just the ClayMation style set?
-Dave