Hi to all....
i am using VS2005 with infragistics 2007 vol.3... My query is am using UltraWebGridDocumentExporter for Exporting grid to PDF File..But its giving Error like this..
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Failed to map the path '/ig_grid.css'.Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[InvalidOperationException: Failed to map the path '/ig_grid.css'.] System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +8853098 System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath) +42 System.Web.VirtualPath.MapPathInternal() +4 System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +107 System.Web.UI.Page.MapPath(String virtualPath) +48 Infragistics.WebUI.UltraWebGrid.DocumentExport.UltraWebGridDocumentExporter.LoadStyleFile(String cssStyleSheetName) +136 Infragistics.WebUI.UltraWebGrid.DocumentExport.UltraWebGridDocumentExporter.GetCss(List`1 stylesheets) +174 Infragistics.WebUI.UltraWebGrid.DocumentExport.UltraWebGridDocumentExporter.RenderDocument() +340 Infragistics.WebUI.UltraWebGrid.DocumentExport.UltraWebGridDocumentExporter.PagePreRender(Object sender, EventArgs e) +477 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Control.OnPreRender(EventArgs e) +8682950 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3614
Hi Alex, Thans for your reply..what you told is right..thanks for your answer..now i had one more..
i am uploading the Dynamically Created UWGrid, after exporting that Grid in the PDF i didnt get any Preset Style..Please tell me how to assign the Preset For Dynamically created UWGrid
Below i am giving my Code,please go through that
(cmbFormat.SelectedIndex == 1)
{
uwGrid.DisplayLayout.Pager.AllowPaging =
;
uwGrid.DataSource = GlobalDs.Tables[0];
uwGrid.DataBind();
// configure exporter
UltraWebGridDocumentExporter1.BeginExport+=
>(UltraWebGridDocumentExporter1_BeginExport);
UltraWebGridDocumentExporter1.Format =
.PDF;
UltraWebGridDocumentExporter1.DownloadName =
UltraWebGridDocumentExporter1.TargetPaperOrientation =
.Landscape;
// trigger export
UltraWebGridDocumentExporter1.Export(uwGrid);
//ExportToPDF(uwGrid, FileFormat.PDF);
}
e)
// Add a title to the report
ReportText.
heading = e.Section.AddText();
e.Layout.ColWidthDefault =
(150);
.Chocolate);
heading.AddContent(
, headingStyle);
Thanks % Regards
Naag C
I can only guess that there is probably some permissions problem. Please verify that you have anough access rights in the hosted environment.
Hi Alex... thakyou for your reply. I am having CSS File also..
Is the css file available in your hosting environment?