Enable Logging

Stimulsoft Reports.NET discussion
Post Reply
joro
Posts: 63
Joined: Wed Jan 27, 2010 7:35 am

Enable Logging

Post by joro »

Hello!

Is there a way to enable logging within stimulsoft?
I have a problem with exporting to RTF-format that occurs everytime in our application. If I transfer the report to a sample project, everything works fine.

joro
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Enable Logging

Post by HighAley »

Hello.
joro wrote:Is there a way to enable logging within stimulsoft?
I have a problem with exporting to RTF-format that occurs everytime in our application. If I transfer the report to a sample project, everything works fine.
You could use next code for logging:

Code: Select all

Stimulsoft.Report.StiLogService.LogEnabled = true;
StiLogService service = StiConfig.Services.GetService(typeof(StiLogService)) as StiLogService;
service.LogPath = "Report.log"; // Path and filename
Thank you.
Post Reply