Solved SalReportPrintToFile and 0 byte PDFs

General discussion forum about all things Team Developer 7.x
memic
Germany
Posts: 19
Joined: 07 Mar 2017, 08:51
Location: Germany

SalReportPrintToFile and 0 byte PDFs

Post by memic » 26 Feb 2018, 15:18

After calling SalReportPrintToFile() the programm doesn't respond anymore.
I can see the PDF File is generated with 0 byte size. I have to kill the program with task manager afer that.

This happens on some windows servers. On workstations it's always working fine... on some other servers it's also working fine..

I don't have idea how to Debug this. When I call SalReportPrintToFile or SalReportPrintToFileEx it just freezes after creating 0 byte PDF and I don't get any error message.

Running as Administrator doesn't change anything.

Are there known bugs with this function?
Last edited by memic on 27 Feb 2018, 10:14, edited 1 time in total.

EWetzel
Germany
Posts: 1
Joined: 07 Mar 2017, 12:08
Location: Germany

Re: SalReportPrintToFile and 0 byte PDFs

Post by EWetzel » 26 Feb 2018, 18:53

Hi,

so far I know is the "Microsoft XPS Document Writer" Printer necessary.
(Starting with TD 6.?. I believe TD 5.? works without this printer)
I know that, because one System Administrator deleted this Printer and after that
my app was also freezing on creating pdfs.

Enrico

memic
Germany
Posts: 19
Joined: 07 Mar 2017, 08:51
Location: Germany

Re: SalReportPrintToFile and 0 byte PDFs

Post by memic » 27 Feb 2018, 08:28

Thanks, I'll check this.

I'm using TD 7.0.2

memic
Germany
Posts: 19
Joined: 07 Mar 2017, 08:51
Location: Germany

Re: SalReportPrintToFile and 0 byte PDFs

Post by memic » 27 Feb 2018, 10:14

Thanks Enrico :D

The Problem was the XPS Writer from Microsoft....

If there is an error in the printer's queue.. all the other jobs aren't being executed... In my case there was a 6 months old error there :o

Image

After cleaning that up it is working fine.

Return to “General Discussion”

Who is online

Users browsing this forum: Ccbot [Crawler] and 1 guest