Skip to main content
Solved

Error when opening report

  • Nov 22, 2021 12:13 PM UTC
  • 6 replies
  • 189 views

Forum|alt.badge.img+6

Hello,

For some users I get an error whilst loading a Crystal Report in the application.

Since the reports are uploaded in the Software Factory, I am not sure which location I need to grand access to.

Is there a way to locate this?

Stack trace:

Stack trace:
bij CrystalDecisions.CrystalReports.Engine.EngineExceptionUtils.DoThrowException(String message, EngineExceptionErrorID id)
bij CrystalDecisions.CrystalReports.Engine.ExceptionThrower.ThrowEngineException(String messageID, EngineExceptionErrorID id)
bij CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
bij CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
bij Thinkwise.CrystalReports.Shared.CrystalReportUtils.CreateReportDocument(String reportPath, TSFProvider provider, DBConnectionInfo connectionInfo, ReportContentLocale reportContentLocale)
bij Thinkwise.CrystalReports.Shared.CrystalReportUtils.CreateReportDocument(TSFReport report, String reportFilePath, IApplicationLogicConnection connection, TaskReportParameterRow paramRow)
bij Thinkwise.CrystalReports.CrystalReportsExecuter.PrintPreview(TSFReportView report, String reportFilePath, Boolean isMandatory, IApplicationLogicConnection connection, TaskReportParameterRow paramRow)
bij Thinkwise.TSFComponents.TaskReport.PrintPreviewReportInvocation.EndInvoke()
bij Thinkwise.Shared.AsyncUtils.<>c__DisplayClass1_0.<Invoke>b__0(Object x)
bij Thinkwise.Shared.AsyncUtils.Invoke(SynchronizationContext sc, Action action)
bij Thinkwise.TSFComponents.TaskReport.TaskProgressWorker.backGroundWorker_DoWork(Object sender, DoWorkEventArgs e)

Best answer by Mark Jongeling

Hi Peter,

For a Print preview to work, the report file will be downloaded to a local location for the user. This is similar to a temporary location like "C:\TEMP”. I guess that is not working. Could it be that some users do not have access to the GUI's cache folder? Do your users work via the DotNet.exe or the Clickstart.exe?

My local cache folder for instance is:

C:\Users\mjongeling\AppData\Local\Thinkwise Software\GUI\develop\Cache

View original
This topic has been closed for replies.

6 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Software Architect
  • Answer
  • Nov 22, 2021 12:35 PM UTC

Hi Peter,

For a Print preview to work, the report file will be downloaded to a local location for the user. This is similar to a temporary location like "C:\TEMP”. I guess that is not working. Could it be that some users do not have access to the GUI's cache folder? Do your users work via the DotNet.exe or the Clickstart.exe?

My local cache folder for instance is:

C:\Users\mjongeling\AppData\Local\Thinkwise Software\GUI\develop\Cache


Forum|alt.badge.img+6
  • Author
  • Captain
  • Nov 22, 2021 12:43 PM UTC

Hi Mark,

The users work with the Clickstart.exe


Can you check for one of the users where it’s not working if the corresponding report is inside the cache folder? 


Forum|alt.badge.img+6
  • Author
  • Captain
  • Nov 22, 2021 2:37 PM UTC

Hi Erwin, Mark,

The file is not in the location where I find it when I do it:

C:\Users\PKruis\AppData\Local\Temp

 

When the other user does this, his Local\Temp folder does not has this file, but he has full rights.

 


  • Nov 23, 2021 12:23 PM UTC

Do you know how to use the impersonation-feature? Following loging in as that user, with executionmode=developer, you can open the folder with cached files:

The reports are in that folder, under Cache/Images/[projectname]/Report/


Forum|alt.badge.img+6
  • Author
  • Captain
  • Nov 25, 2021 12:30 PM UTC

The customer found the problem: as said above, a rights issue for the specific user or group the users was in. 

Thanks all.