Skip to Content
author's profile photo Former Member
Former Member

Printing on an Add-On

Hi,

Is there any method for printing some document on an

Add-On?

For example, if I want to throw the printing of an invoice, or if I want to throw the printing of some user report...

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2004 at 01:12 PM

    Heyah

    If your report/doc is simple ( FieldCount eqal constatn )

    Meybe you can try following:

    1.Build a User Query - it must contain all data you need

    (query must have clause where ex: Doc=1, etc )

    2.Make user report for this query - it must look like Your simple document

    3.Make Your add'on . In printing function just change query in Qstring field RDOC table for your report

    4.Simulate open UserReport and PrintClick on Your report

    let me know it is work?

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2004 at 05:50 AM

    Hi Cristian

    You may simulate a click onto a Printing MenuItem when the document you want to print is open:

    uiApp.ActivateMenuItem("519") 'Print Preview

    or

    uiApp.ActivateMenuItem("520") 'Print

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Cristian

      Yes, you are right; my answer is just the answer to the first part of your question (printing an invoice).

      I don't have any experience with User Reports, so I don't know wether there is a way to solve your User Report problem, sorry.