NetTalk Central

Author Topic: RESOLVED. Showing previewer when creating PDF report  (Read 5142 times)

Poul Jensen

  • Full Member
  • ***
  • Posts: 189
    • View Profile
    • Email
RESOLVED. Showing previewer when creating PDF report
« 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
« Last Edit: May 19, 2016, 10:25:33 AM by Poul Jensen »

Matthew51

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • Email
Re: Showing previewer when creating PDF report
« Reply #1 on: May 04, 2016, 01:10:24 PM »
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
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template

Poul Jensen

  • Full Member
  • ***
  • Posts: 189
    • View Profile
    • Email
Re: Showing previewer when creating PDF report
« Reply #2 on: May 05, 2016, 05:24:59 AM »
Thanks Matthew, but I have added that extensions.

Cheers
/Poul

Matthew51

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • Email
Re: Showing previewer when creating PDF report
« Reply #3 on: May 05, 2016, 11:54:12 AM »
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.
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Showing previewer when creating PDF report
« Reply #4 on: May 05, 2016, 11:02:01 PM »
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

Poul Jensen

  • Full Member
  • ***
  • Posts: 189
    • View Profile
    • Email
Re: Showing previewer when creating PDF report
« Reply #5 on: May 06, 2016, 12:33:38 AM »
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Showing previewer when creating PDF report
« Reply #6 on: May 06, 2016, 11:23:06 PM »
Hi Poul,

which menu item in Example 14 is failing?

cheers
Bruce


Poul Jensen

  • Full Member
  • ***
  • Posts: 189
    • View Profile
    • Email
Re: Showing previewer when creating PDF report
« Reply #7 on: May 07, 2016, 12:02:25 AM »
Hi Bruce

Browse > Mailboxes > Print button.

And by the way: same procedure in Example 13 does not work either.

Cheers
/Poul
« Last Edit: May 07, 2016, 06:36:14 AM by Poul Jensen »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Showing previewer when creating PDF report
« Reply #8 on: May 08, 2016, 10:36:15 PM »
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


Poul Jensen

  • Full Member
  • ***
  • Posts: 189
    • View Profile
    • Email
Re: Showing previewer when creating PDF report
« Reply #9 on: May 10, 2016, 11:34:24 AM »
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Showing previewer when creating PDF report
« Reply #10 on: May 12, 2016, 04:29:35 AM »
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

Poul Jensen

  • Full Member
  • ***
  • Posts: 189
    • View Profile
    • Email
Re: Showing previewer when creating PDF report
« Reply #11 on: May 19, 2016, 10:25:03 AM »
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: RESOLVED. Showing previewer when creating PDF report
« Reply #12 on: May 22, 2016, 10:38:48 PM »
cool.