export report to pdf on the web

Stimulsoft Reports.NET discussion
Post Reply
J_S
Posts: 49
Joined: Mon Sep 22, 2008 3:10 am
Location: Netherlands

export report to pdf on the web

Post 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
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

export report to pdf on the web

Post by Jan »

Hello,

You can specify path with help of:

report.Compile("report.dll");

Thank you.
Post Reply