NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started 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
-
Hi Bram,
I think I need more information mate.
Do you perhaps have an example I can try?
cheers
Bruce
-
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
-
Hi Bruce,
Could you look at the demo app Web1 please?
Thanks.
Bram
-
I can't get to it today Bram, but I hope to check this out for this weeks build.
cheers
Bruce
-
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
-
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
-
Hi Bruce,
Indeed, this solved the problem.
Thank you for your help.
Best regards,
Bram