How to know if an report is printed or exported ? and how to change frxobject given this ?

Hi,

Our reports (mainly quotes and invoices) are printed on 'Preprinted' papers (logo + marketing text are printed on the paper).
All report are designed with logo and marketing text.

Now our customer want to send generated reports via Email. They want to include logo + marketing text when exported to email (I will add this logo + text in my report).
I'm a little bit stuck, how can I perfrom this task at runtime (pascal script) :
- hide my logo + marketing text when printing
- display my logo + marketing text when exporting

Thank you in advance for any help.

Best regard,

Stephane Wierzbicki

Comments

  • edited 10:49PM
    Hi,

    Our reports (mainly quotes and invoices) are printed on 'Preprinted' papers (logo + marketing text are printed on the paper).
    All report are designed with logo and marketing text.

    Now our customer want to send generated reports via Email. They want to include logo + marketing text when exported to email (I will add this logo + text in my report).
    I'm a little bit stuck, how can I perfrom this task at runtime (pascal script) :
    - hide my logo + marketing text when printing
    - display my logo + marketing text when exporting

    Thank you in advance for any help.

    Best regard,

    Stephane Wierzbicki


    Hi,
    Try to hide this object in onPrintEvent .
  • edited 10:49PM
    [/quote]
    Try to hide this object in onPrintEvent .
    [/quote]

    the onprintevent object behave the same was if the report is printed or exported !
    Right now there is no way to determine if the report was printed or exported.
    Did anyone else found a solution for this ?
  • gordkgordk St.Catherines On. Canada.
    edited 10:49PM
    IMHO unfortunately you can't if you are trying to do both from the same preview window
    as you already are on the finished pages, and you want to alter a design property.
    in my own work i run the internal(inhouse printing for snail mail delivery customers) separately
    from the exportable printing. same report just set printable props to false of the objects you don't want printed.
    i also have a boolean flag in the customer table to indicate if email exporting is used



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.