0

Print on Button Click

Is there a way to print on button click or is the PDF printer the only output from a button/print command?

In other words has a direct print function been developed or are we still tied to the "old" pdf print output?

I've been using the printRecord(this, "testlayout");  but as said that opens the pdf printing... looking to automate this..

Thanks!

4 replies

null
    • Catos
    • 4 yrs ago
    • Reported - view

    Paste code below in a button.

     

    importFile(this, printAndSaveRecord(this, “PRINT”), TITLE + “.pdf”);

     

    Replace PRINT with the title name that have your printing view.

    Replace TITLE with a name that your PDF file is going to be saved.

     

    Then look at your record attached files.

    • CLD
    • Valerio
    • 4 yrs ago
    • Reported - view

    Hello John,

    thanks! This works to export and save my layout in the attachements. But how does this solve the print on button problem?

    Once it“s in the attachemnts how do i automate the print?

    • Antonello_Stabile_71
    • 4 yrs ago
    • Reported - view

    La funzione ancora non esiste che io sappia

    • CLD
    • Valerio
    • 4 yrs ago
    • Reported - view

    Grazie Antonello! Infatti immaginavo purtroppo... davvero un grosso limite.