Solved

Error message when using subreports with preview: 'Could not find file 'XXXXX\Cache\Images\YYY\Raport\reportfilename.repx'

  • 9 February 2022
  • 3 replies
  • 98 views

Userlevel 2
Badge +7

For reports we use the DevExpress report editor provided by Thinkwise.

The report files are uploaded in the SF.
As a result, TW automatically creates files in the report cache folder with the name "title of report"_"reportfilename".repx.

In our application we make use of both direct printing and the possibility for users to view a report in preview mode.

Reports made from 1 part work fine in both modes. But the preview mode does not work for reports that consist of a main report and 1 or more subreports.

When linking in the DevExpress report designer to the subreports, the "reportfilename" is used. However, this file name cannot be found in the cache folder, causing the error message 'Could not find file 'XXXXX\Cache\Images\YYY\Raport\reportfilename.repx'.

A work-around is to restore the files from the cache folder and use them in the report editor (and link to them). But this is very cumbersome and error-prone, so undesirable.

We use the reports using the Windows GUI.

Is there any other way we can fix the error when using subreports in preview mode?
And can it be indicated why this file name is used in the cache folder in that way anyway?

Thanks for the info

icon

Best answer by Jasper 15 February 2022, 08:23

View original

3 replies

Userlevel 7
Badge +11

Hi Marc,

DevExpress (or other) reports with sub-reports in separate files are currently not supported, as mentioned in our docs.

As an alternative, you can use detail report bands instead.

 

Userlevel 2
Badge +7

Hi Jasper.

Thank you for the reply.
Is the support for sub-reports already on the backlog? Sub-reports are very useful, for example to create and reuse recurring items once (such as general terms and conditions and company information in the footer of reports). You don't want to recreate these in every report.

Sub-reports in DevExpress work just fine in Thinkwise, but the only problem is that Thinkwise places the reports with a "duplicate filename" in the cache folder.
Why are the reports placed in that folder in this way?
If they are placed in that folder with their "technical filename" everything works as expected.

Userlevel 7
Badge +11

Hi Marc,

I agree that subreports can be useful, but we haven't planned that now. Also because with detail bands you can achieve the same result. The report file names are currently prefixed with the report ID to prevent duplicates. 

Feel free to submit an idea on the community, so we can see if more community members are interested in this feature.

Reply