После перехода с версии 1.61 на версию 2007.2.0.0 возникла следующая проблема при формировании отчета:
Код: Выделить всё
[ArgumentException: Путь имеет недопустимую форму.]
System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) +7492373
System.IO.Path.NormalizePath(String path, Boolean fullCheck) +36
System.IO.Path.GetDirectoryName(String path) +31
Stimulsoft.Report.Export.StiHtmlImageHost.GetImageString(Bitmap bmp) +29
Stimulsoft.Report.Export.StiHtmlTableRender.RenderTable(Boolean renderStyles) +3765
Stimulsoft.Report.Export.StiHtmlExportService.ExportHtml(StiReport report, HtmlTextWriter writer, StiHtmlExportSettings settings, StiPagesCollection pages) +4216
Stimulsoft.Report.Export.StiHtmlExportService.ExportHtml(StiReport report, HtmlTextWriter writer, Double zoom, ImageFormat imageFormat, Int32 pageIndex, StiHtmlExportMode exportMode, StiHtmlExportQuality exportQuality) +147
Stimulsoft.Report.Web.StiWebViewer.RenderOnePage(Int32 page, StiHtmlExportService export) +172
Stimulsoft.Report.Web.StiWebViewer.RenderContents(HtmlTextWriter output) +1364
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
Stimulsoft.Report.Web.StiWebViewer.Render(HtmlTextWriter output) +484
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer) +231
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer) +35
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
ASP.app_masterpages_sugar_defaultview_master.__RenderfrmMain(HtmlTextWriter __w, Control parameterContainer) in c:\Work\General Development\Customer_Projects\ИСИ-Русь-CRM-2\Sources\SplendidCRM Type 1\Web Site\App_MasterPages\Sugar\DefaultView.master:141
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
Отчет предварительно скомпилирован в сборку и загружается следующим кодом:
Код: Выделить всё
StiReport stiReport = StiReport.GetReportFromAssembly( reportPath );
StiText component = stiReport.GetComponents()["Text_Company"] as StiText;
if( component != null )
{
component.TextValue = _code.CSSActivator.cfg_CrmName;
}
stiReport.RegData( data );
theStiWebViewer.Report = stiReport;
theStiWebViewer.Visible = true;
Код: Выделить всё