[Gambas-user] It is possible to print without having to show the system's config form?

martin p cristia tercoide at hotmail.com
Tue Mar 8 17:20:21 CET 2022


Form the help:


      Printing a document

To print a document:

  *

    Instanciate a Printer object.

  *

    Call theConfigure
    <https://gambaswiki.org/wiki/comp/gb.qt4/printer/configure>method. A
    printing configuration dialog is displayed.  <----- I WANT TO SKIP THIS

  *

    Call thePrint
    <https://gambaswiki.org/wiki/comp/gb.qt4/printer/print>method to run
    the printing process.

  *

    TheBegin
    <https://gambaswiki.org/wiki/comp/gb.qt4/printer/.begin>event is
    raised when t.................

My program has its own print setup form, so the printer's name, paper 
size and page settings are all set into the instanciated Printer object, 
say printer1. There is no need for the .Configure method, so its not 
called; but it shows anyway after printer1.Print method. Is there a way 
to prevent this?


-- 
Saludos

Ing. Martin P Cristia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220308/54bb258b/attachment-0001.htm>


More information about the User mailing list