Strange preview behaviour

Hi everyone,

I have one problem that really it's letting me go mad.

My program is a single executable in a network folder, with the report files on the same location.
Randomly, and only on some specific client PCs (1 or 2 out of 10), sometimes the preview appears as an empty page (with no white area inside) without anything previewed inside. The SAME IDENTICAL preview works on the other PCs. The strange thing is that there is nothing installed locally, so I can't imagine why this happens.
If I retry the preview in that PC, almost everytime at the second run it works.
The report reads a PostgreSQL query, and the only Delphi code is this:

frrptStampa.LoadFromFile('report_name_01.fr3');
frrptStampa.ShowReport(True);

In all oter PCs it's working as expected...

Thank you in advance for your time.


Sergio

Comments

  • edited 6:56AM
    I think the first step would be to make sure that the query returns some data.
    You need to create something which allows you to ascertain that in retrospect.
  • gpigpi
    edited 6:56AM
    wrote:
    frrptStampa.LoadFromFile('report_name_01.fr3');
    Try to use filename with absolute path
  • edited 6:56AM
    technisoft wrote: »
    I think the first step would be to make sure that the query returns some data.
    You need to create something which allows you to ascertain that in retrospect.

    The query is ok, on the other PCs tha same report shows all the data as expected. Also an the same PC, if you retry sometimes it works.
    Remember that it shows a gray background preview form, not a blank report. When I try on my PC or in other PCs there is no problem.

    Thank you for your time.

    Sergio
  • edited 6:56AM
    gpi wrote: »
    gpi wrote: »
    frrptStampa.LoadFromFile('report_name_01.fr3');
    Try to use filename with absolute path

    I will try, but not every time the preview is with a gray background. In the 90% of the previews, on the same PC, it works normally.
    So, if it was a path problem, I think that the problem should be present every time.

    Thank you.

    Sergio

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.