| |
| |
|
| - Page 1 - |
|
 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 |
|
| |
| Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 | | 01/10/21 ▲ |
|
| |
|
 |
« this Posting watts as Solution marked. » |
|
 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 |
|
| |
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 01/11/21 ▲ |
|
| |
 |
|
|
 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 ?? |
|
| |
| Grüße aus Sachsen... Mario WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte... | 01/10/21 ▲ |
|
| |
|
|
 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 |
|
| |
| XProfan X2Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 | | 01/11/21 ▲ |
|
| |
|
|
 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? |
|
| |
| Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'... | 01/11/21 ▲ |
|
| |
|
|
 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. |
|
| |
| XProfan X2Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 | | 01/11/21 ▲ |
|
| |
|
|
 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 |
|
| |
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 01/11/21 ▲ |
|
| |
|
|
 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. |
|
| |
| XProfan 11Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'... | 01/11/21 ▲ |
|
| |
|
|
 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 |
|
| |
| XProfan X4Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 01/11/21 ▲ |
|
| |
|
|
 p.specht
 | | Achso, the "*" in the names can first whom printer select. thanks, so far clear. |
|
| |
| Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'... | 01/11/21 ▲ |
|
| |
|
|
 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 |
|
| |
| XProfan X2Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 | | 01/11/21 ▲ |
|
| |
|
|
 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. |
|
| |
| Grüße aus Sachsen... Mario WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte... | 01/11/21 ▲ |
|
| |
|