NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: bramkip on September 06, 2012, 02:10:13 AM

Title: RightReport with NTWS
Post by: bramkip 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
Title: Re: RightReport with NTWS
Post by: Bruce 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

Title: Re: RightReport with NTWS
Post by: bramkip 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
Title: Re: RightReport with NTWS
Post by: bramkip on September 10, 2012, 12:34:45 AM
Hi Bruce,

Could you look at the demo app Web1 please?

Thanks.

Bram
Title: Re: RightReport with NTWS
Post by: Bruce 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
Title: Re: RightReport with NTWS
Post by: bramkip 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
Title: Re: RightReport with NTWS
Post by: Bruce 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

Title: Re: RightReport with NTWS
Post by: bramkip on October 07, 2012, 05:57:56 AM
Hi Bruce,

Indeed, this solved the problem.

Thank you for your help.

Best regards,

Bram