Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 2 Jahren, 8 Monaten
Letzter Beitrag:
vor 2 Jahren, 8 Monaten
Beteiligte Autoren:
Stefan Bentvelsen, Al, Michael Drechsel

[WD19] printing from preview print outdated report

Startbeitrag von Stefan Bentvelsen am 15.06.2015 10:11

Hi,

I have a customer with a number of workstations, from which one of them is a Win-XP PC. When printing a report from the preview-window often an outdated report is printed, thus not the one in the printpreview! After closing the software and restart it, the report prints as it should. It happens with more (maybe all) reports.

Someone else has such kind of problems and found a solution (except replacing the pc for another - newer- one) ? Could it be i.e. a windows configuring setting somewhere ?

Antworten:

Hi Stefan,

I have a similar expierience with printing after preview, but it happens at all computers. (see here)

von Michael Drechsel - am 16.06.2015 06:11
Hello Stefan

Would some combination if iEndPrinting and iEndReport help ?
I know iEndprinting() is for hand coded reports but maybe it clears the print spooler so it might help.

Regards
Al

von Al - am 16.06.2015 07:23
Hi Al,

the help-file mentioned explicitly the following for iEndPrinting():

This function must only be used with the reports created by programming. This function must not be called in the processes of a report created with the report editor of WinDev.

I do not think it would help to call the function before or after printing a report-editor report. I will send the problem to PCSoft, although I can't simulate the problem in a test project.

von Stefan Bentvelsen - am 16.06.2015 11:21
I have found a possible cause of the problem. One report, often used by the customer is based on a query. The same query is used for filling of browse tables on two windows. I can imagine that this is the cause of the problem. The printed report is than not outdated, but corrupted because of the multiple use of the same query.

I had sended a mail to PCSoft. They said that printing from the preview re-executes the report. If the source of the report is changed or a global variable used for rebuilding the source, it could cause the problem.

I hope this explanation could help someone.

von Stefan Bentvelsen - am 26.06.2015 10:00
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.