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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

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 a 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 a 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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.