Page 1 of 1

Enable Logging

Posted: Tue Oct 02, 2012 6:20 am
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

Re: Enable Logging

Posted: Thu Oct 04, 2012 10:49 am
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.