PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD21] Preview and Printing
[WD21] Preview and Printing
Iniciado por guest, 25,ene. 2018 15:26 - 3 respuestas
Publicado el 25,enero 2018 - 15:26
Hi

I must be doing something wrong somewhere because my application is failing on the client machine.

I run these command in this order

iInitReportQuery(RPT_Document)
iDestination(iPDF,FileName)
iPreview(iPage)
iPrintReport(RPT_Document)

On my machine the preview window is shown and I can close it and print other documents with no problem.

On the client's machine they can preview one document and then from there on nothing is generated for the next report requested. No report, no preview.

I installed the WD21 patch US_103089 on my machine before compiling and distributing my software.

Any assistance appreciated.

Regards



Ericus Steyn
Publicado el 26,enero 2018 - 10:13
Hi Eric,

Do you have this problem with only one report or with all the reports in your project?

If only one report => there is probably something wrong with the report
if all reports => there is probably something wrong on client computer

Kind regards,

Joris.
Publicado el 26,enero 2018 - 12:16
Hi

Never use iPreview(iPage) but iPreview(100) , always.

and did you put iEndPrinting() after iPrintReport()... and you'd better.

Finally, pls check your default printer on client w/s or use iConfigure()
before iPreview to see if it helps.

HTH

King
Publicado el 30,enero 2018 - 00:10
Did adding the iEndPrinting() help the problem? The help says this only applies to reports by programming, not reports created with the report editor.

We are having print problems with Windows 10 clients at some schools. The print never completes and they have to end the application.