SHOWZOOMED and Report Pro

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
ic2
Posts: 1798
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

SHOWZOOMED and Report Pro

Post by ic2 »

A while ago we had a weird problem with a report (an invoice) printed (as PDF in that case) using ReportPro 2.16k. For large multi page invoices the page counter text never appeared; the window kept showing the Being printed (in Dutch "Wordt afgedrukt") message. By chance I found that changing the zoomed status to a normal status solved the problem 100%. I programmed this and it seemed to solve the problem:
SELF:Show(SHOWNORMAL) PrintReportNew(cPDFName,cReportName,cnr,"Fact.Factnr = '"+cnr+"'" ,"",aVariables,"fact","factnr",cPDFPrinter,0,FALSE,{},"",SELF,cCheckname)
SELF:Show(SHOWZOOMED)

It appears that since then, a bBrowser used to display the created PDF files to mail invoices to clients became inaccessible as soon as such a long invoice was one of them. A test I did with Kees, on the very same server via RD and the very same program & steps but each with our own administrative server login revealed that Kees had no problems (although it was slow) while for me it did not work!)

After lots of trial & error I found that removing the restoring Show(SHOWZOOMED) statement again solved the problem. Also I noticed that after the failed bBrowser access (in the exe still with the SHOWZOOMED in it), and closing the program, the program remained in memory in the Windows task manager. Note that most clients, also those with large invoices, did not have this problem, proven by the fact that Kees and I could do the same things while only one of us had the problem. But I could reproduce it 100% and every time so it's not random.

Is there any logic in this?

Dick
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

SHOWZOOMED and Report Pro

Post by robert »

Dick,

There must be an explanation, but I do not see it.
Maybe you and Kees have different UI settings in windows ?

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
ic2
Posts: 1798
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

SHOWZOOMED and Report Pro

Post by ic2 »

Hello Robert,

It must be something like this although the 2 (admin) RD accounts have probably been created the same way so it's hard to find where it differs. The problem that the Report Pro PDF creation hung was seen on 2 different RD client systems -only with large multiple page invoices- but not on any others: we could copy all data and create the reports without problems on our Pc.

Somehow ReportPro seems indeed to be influenced by some unknown Windows setting. I keep my fingers crossed that my workaround keeps working everywhere.

Dick
Post Reply