NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Poul Jensen on May 04, 2016, 12:53:08 PM
-
Hello,
Making a invoice report from browse/detail lines usingTracker tools.
The previewer shows the invoice.
Then I click the printer icon in the previewer and the pdf is created and shown.
Am I supposed to see the previewer at all ?
Cheers
/Poul
NT9 / C10
-
Looks like you need to add the NetWebReport extension. It gets nested under the Report to PDF extension. That should suppress the preview. You will still see a progress bar for generating the PDF, but that doesn't need any interaction.
Matthew
-
Thanks Matthew, but I have added that extensions.
Cheers
/Poul
-
How are you calling the report? It needs to have the p_web object passed to it to send the report to the browser. If you use the template to call it (ie. selecting the procedure on the "on click" tab of a button). If you made your own embed point you will need to add the parameter yourself.
It does look as of your report is not running in web mode. These are the only two reason I know of that could happen. You could try putting a debug message in the "Prime Report Options when run in Web mode" embed point to make sure it's getting their.
-
perhaps you want to post an example of the problem Poul so we can compare it to one of the shipping examples which does not have this effect.
cheers
Bruce
-
Hi Matthew & Bruce,
I am using Web-14 as a starting point for calling the report from a button on a browse.
In Web-14: MailBoxessBrowseControl calling AliasReport.
I have copied all setting from the button on the browse and from the report to my app.
It actually turns out, that web-14 will NOT generate and show the PDF from the browse (but in all other places in web-14 it works).
So I am actually getting the PDF generated - but previewer is shown first.
As per Matthew's suggestion I have placed a message in "Prime Report Options when run in Web mode" and that message is being shown.
And of cource the report procedure is prototyped: (<NetWebServerWorker p_web>).
So first step must be to get web-14 app to work as expected from the browse.
Cheers,
/Poul
-
Hi Poul,
which menu item in Example 14 is failing?
cheers
Bruce
-
Hi Bruce
Browse > Mailboxes > Print button.
And by the way: same procedure in Example 13 does not work either.
Cheers
/Poul
-
Hi Poul,
hmmm. The examples (both of them) seem to be working here ok.
The print button on the form calls the AliasReport. It helps if you print a mailbox that does _have_ an Alias, but even if it doesn't I didn't see any preview window appear on the server.
Perhaps there is something else in play here? Perhaps come to the webinar on Thursday and I can see if we can identify what is different in your setup?
cheers
Bruce
-
Hi Bruce,
I cannot attend the webinar unfortunately, but I just now notice following message in a blank browser window:
The Print procedure failed to create the PDF file [C:\Progs\Pstellar7\MariSoft\web\reports\$$$19949.pdf]
All users on the PC has full control to that folder.
I have tried to prime the pdf-filename with the ordre.no from the table but still no luck:
The Print procedure failed to create the PDF file [C:\PROGS\PSTELL~1\MARISOFT\Web\Reports\3529.pdf]
Does that give you a hint to possible cause ?
Cheers
/Poul
-
Hi Poul,
>> Does that give you a hint to possible cause?
Well it does move the question somewhat from the button settings to the settings in the report itself.
Couple things to check there I guess - like was the report empty? Did it generate at all? Did the PDF converter work and so on....
Without an example it's hard to really comment on the specifics though.
cheers
Bruce
-
Hi Bruce,
Well this is a bit embarrassing: finally got some time to work on this and finally got to read the manual.
Specifically the settings for the PDF report extension > Previewer tab:
http://www.capesoft.com/docs/NetTalk9/NetWebReports.htm#Adding_PDF-XChange_functionality_to_your_report
By following these to the letter, the report printed as expected :-)
(Why Example 14 would NOT print I do not know. The settings are correct here).
Thanks for your help.
/Poul
-
cool.