| |
|
|
Manfred Barei | Hello, have with fogendem Codebeispiel following Error Message
I call to that Print whom Druckerdialog on and dial here "Microsoft Print to PDF" around the File as PDF To Save, however entscheide I circa and dial Cancel. thereby comes it to this Error Message and the Progamm exits itself. How can man these Error Message intercepting so the program moreover runs.
for the Help beforehand already once thanks
Greeting |
|
|
E.T. | Have none "Microsoft Print to PDF" - printer, but with "PDF XChance" functions it (as well as with "HP LaserJet" and "Fax"): OK druckt one rectangle, Cancel breaks and your example exits itself, without Error Message.
time with anderem printer attempts ?? |
|
|
Manfred Barei | Hi,
No, It's all right therefore if I whom PDF-printer chosen have by me "Microsoft Print to PDF" can man too with each others PDF-printer make and subsequently with the input for Dateinahmen under the I The PDF Save would like land and here Cancel dial comes these Error Message.
Greeting |
|
|
p.specht
| Manfred, in the Startprint-Segment: closes You sometime with ENDPRINT The sequence again ex? it sees so from, as stünde it in the IF-Statement? |
|
|
Manfred Barei | Hello p. woodpecker, to that IF-Statement come I first not at all.
CLS
StartPrint "*Testausdruck"' here becomes over the Druckerdialog the printer
' "Microsoft Print to PDF" tuned, hereon erscheind one
'dialog around the Filenames for PDF-File type,
'if I here now Cancel dial goes The process the Program's
'not further and fractures the program in line 2 ex.
'man comes means not at all moreover as row 2.
Window Title STR$(%Printing)
waitinput
If %Printing
MoveTo 34, 34
LineTo 34 + 343, 34
LineTo 34 + 343, 34 + 343
LineTo 34, 34 + 343
LineTo 34, 34
EndPrint
EndIf
'-End-------------------------------------------------------------------
End
Perhaps can here only Roland moreover help?
Greeting
PS. the here only one rectangle Gedruckt becomes is the example geschuldet, stammt from the Profan Help. I wanted to not my whole Druckausgabe take on. |
|
|
RGH | The background is Folgender:
The Systemvariable %Printing becomes on TRUE staid, once You whom Druckerauswahl-Dialogue with "OK" exits have. the have You Yes done. means becomes the Druckprozess launched. If subsequently at Print something schief runs, there these Error Message. there You, from whom Found too always, The request the Dateinnamens aborted have, can't printed go, there this missing.
The Error Message can You avoid, in the You during the Druckens to the StartPrint whom Errorlevel on -1 setting.
Greeting Roland |
|
|
p.specht
| %Printing is Yes not yet true, if the printer first select becomes. I suspect, the EndPrint heard therefore under the Endif, not whom IF-ENDIF-block into. |
|
|
RGH | the would but nothing on the Error Message Change. These becomes already at StartPrint created, because to the "OK" in the Druckerauswahl-dialog no Dateiname chosen and is the Druckprozess not correctly initialized go can.
Greeting Roland |
|
|
p.specht
| Achso, the "*" in the names can first whom printer select. thanks, so far clear. |
|
|
Manfred Barei | Hello Roland,
very the war's, thanks
however is the still always not the I really wants. I have after a UVV-check 1-100 Prüfberichte The I as PDF-File abspeichern must, that heist 1-100 times the Druckausgabe Call Speicherort dial and Dateiname give away and each PDF abspeichern. can man not over Printbefehle or System-Variables release?
the heist Speicherort and Dateiname give away PDF Printer Call and Print and the everything without Druckdialog?
Greeting and thanks for Info with ErrorLevel |
|
|
E.T. | each time the same Speicherort ?? Dateiname each time differently ??
otherwise would I way and Dateiname+counter in the printer determine, so the no request necessary is. |
|