printing - Ax2012:How can I upload and print an external PDF file -
i'm beginner student working on project ax2012
. have external pdf file print . this,i looking solution upload, display , print pdf external file when click button.
i have test job
static void aalpdfprint(args _args) { printjobsettings printjobsettings = new printjobsettings(); dialog dialog = new dialog(); dialogfield dialogfilename; str adobeexe; str adobeparm; ; dialogfilename = dialog.addfield(extendedtypestr(filenameopen), "immatriculation"); if (dialog.run()) { printjobsettings.printersettings('sysprintform'); adobeexe = winapi::findexecutable(dialogfilename.value()); adobeparm = strfmt(' /t "%1" "%2" "%3" "%4"', dialogfilename.value(), printjobsettings.printerprintername(), printjobsettings.printerdrivername(), printjobsettings.printerportname()); winapi::shellexecute(adobeexe, adobeparm); } }
here can upload file correctly, want display before printing.
have tried other command line options acrobat reader?
what applies other languages applies x++ well.
Comments
Post a Comment