NetTalk Central

Author Topic: RightReport with NTWS  (Read 5055 times)

bramkip

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • Intellisoft
    • Email
RightReport with NTWS
« on: September 06, 2012, 02:10:13 AM »
Hi,

The generated report is not being displayed. Also with the demo app Web1 (WithNTWS).
Error: 'The page cannot be found'

on http://127.0.0.1:88/PrintReport

Although the PDF file is generated in the Report map.

Any suggestions?

Thanks.

Bram

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: RightReport with NTWS
« Reply #1 on: September 06, 2012, 10:26:24 PM »
Hi Bram,

I think I need more information mate.
Do you perhaps have an example I can try?

cheers
Bruce


bramkip

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • Intellisoft
    • Email
Re: RightReport with NTWS
« Reply #2 on: September 06, 2012, 11:46:00 PM »
Hi Bruce,

The problem also accours in your demo app Web1 in the RightReports\WithNTWS map.

After generating the pdf document, the URL shows http://127.0.0.1:88/PrintReport instead of the correct pdf document name. I think thats the problem.

Can you confirm this?

Thanks
Bram

bramkip

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • Intellisoft
    • Email
Re: RightReport with NTWS
« Reply #3 on: September 10, 2012, 12:34:45 AM »
Hi Bruce,

Could you look at the demo app Web1 please?

Thanks.

Bram

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: RightReport with NTWS
« Reply #4 on: September 10, 2012, 05:23:53 AM »
I can't get to it today Bram, but I hope to check this out for this weeks build.

cheers
Bruce

bramkip

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • Intellisoft
    • Email
Re: RightReport with NTWS
« Reply #5 on: October 03, 2012, 01:20:37 PM »
Hi Bruce,

I installed build 6.46 and hoped you solved the problem with RightReports. I ran web1.app (from WithNTWS) but I still become the error after generating the PDF report:

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Could you look at this please? I cannot use RightReports now.

Thanks

Bram

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: RightReport with NTWS
« Reply #6 on: October 05, 2012, 03:19:22 AM »
Hi Bram,

ok, I think I've found the problem. At least, I've found it in the example so it's probably the same in your app;

Go to the RightReportsWebPrintReport procedure in your app.
It should be a NetWebPage procedure.
Goto the extensions for the procedure.
"Implements NetWebServer Code on a Print Report page" extention should be there. Highlight this extension and go to Properties.
See the setting, "Formula for PDF file". It's likely to be;

'Reports\' & p_web.SessionID & '_' & RROptionsGroup.DefnCode & '.pdf'

this needs to be changed to

'Reports\$$$' & clip(p_web.SessionID) & '_' & RROptionsGroup.DefnCode & '.pdf'

The SessionID changed from a long to a string, hence the need for the extra Clip.

cheers
Bruce

« Last Edit: October 05, 2012, 03:23:35 AM by Bruce »

bramkip

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • Intellisoft
    • Email
Re: RightReport with NTWS
« Reply #7 on: October 07, 2012, 05:57:56 AM »
Hi Bruce,

Indeed, this solved the problem.

Thank you for your help.

Best regards,

Bram