Page 1 of 1

export report to pdf on the web

Posted: Fri Nov 20, 2009 9:53 am
by J_S
Hi,

When I want to save a report on the web to pdf, I get the following exception:

Could not find part of the path.

This is the stack trace:

bij System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bij System.IO.Directory.SetCurrentDirectory(String path)
bij Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
bij Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate)
bij Stimulsoft.Report.StiReport.Compile(String path, StiOutputType outputType, Boolean autoCreate)
bij Stimulsoft.Report.StiReport.Compile(String path, StiOutputType outputType)
bij Stimulsoft.Report.StiReport.Compile(StiOutputType outputType)
bij Stimulsoft.Report.StiReport.Compile()
bij Stimulsoft.Report.Engine.StiReportV1Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
bij Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
bij Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
bij Stimulsoft.Report.StiReport.RenderWithWpf(StiRenderState renderState)
bij AdviceOnline.Products.JobEvaluationControl.GetReportUrlJobEvaluationOpen(String employee, DateTime date, String function, String department, String period, DateTime lastEvaluationDate, String author, Int32 nrOfPoints) in D:\Project\Acconavm\AdviesOnline\Source\Products\JobEvaluation\JobEvaluationControl.ascx.cs:regel 208


Is there a possibility to set the path which the report can use for compiling? Because I use url rewriting.

Regards

export report to pdf on the web

Posted: Fri Nov 20, 2009 11:05 am
by Jan
Hello,

You can specify path with help of:

report.Compile("report.dll");

Thank you.