Modify report after PrepareReport

Hi,

We have our own preview form to display reports. With this preview form, users can simply show or hide some image of a invoice for exemple.

To show the report at the first time I call PrepareReport(True). After the user hide the image, so I must recall PrepareReport(True).

When I call PrepareReport a second time, the error "DataSet '''' does not exist" appears.

Thanks for your help.

Comments

  • edited 11:29AM
    Hi,

    We have our own preview form to display reports. With this preview form, users can simply show or hide some image of a invoice for exemple.

    To show the report at the first time I call PrepareReport(True). After the user hide the image, so I must recall PrepareReport(True).

    When I call PrepareReport a second time, the error "DataSet '''' does not exist" appears.

    Thanks for your help.

    It's not possible to call PrepareReport two times ?
  • Anu de DeusAnu de Deus Hampshire, UK
    edited 11:29AM
    I don't think so.
    Can't you display a parameters dialog box to the user before generating it, so you make the controls invisible before calling preparereport()?
  • edited 11:29AM
    I don't think so.
    Can't you display a parameters dialog box to the user before generating it, so you make the controls invisible before calling preparereport()?
    No the buttons are in the toolbox of the preview form. So I must recreate the report when a changed is made.
    Why this error message appears?
  • edited 11:29AM
    use PrepareReport(False) instead.

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.