NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: springguy on October 13, 2012, 06:40:15 PM

Title: Calling Print Report from HTML Image on a Form
Post by: springguy on October 13, 2012, 06:40:15 PM
NT 6.38
I have a Form with an image on it that was created with embedded html code.  But, when I click on the image, the report procedure is called (you can see it in the browser address) but I get a Page Not Found.

Here is the code I am using:

Packet = clip(Packet) & '<div id="PrintButton1_Image1" style="position:absolute;left:10px;z-index:12;" align="left"><a href="PrintMoneyCounterWSEnv"><img src="images/PrintWorksheet1.jpg" id="Image1" alt="" align="top" border="0"></a></div>' & CRLF   
do SendPacket

This same code works fine if I am calling another procedure that is not a report (ie NetWebPage, NetWebForm, NetWebBrowse), but not for a report.

What am I doing wrong?
Thanks.
Mike Springer

Title: Re: Calling Print Report from HTML Image on a Form
Post by: bshields on October 13, 2012, 06:48:54 PM
Hi Mike,

I'm not how you are doing your reports, but unless in is built into a NewWebPage its not going to be found. NetWebSource procedures are not added to NetTalks main loop where it takes a URL and looks for the corresponding procedure.

Regards
Bill
Title: Re: Calling Print Report from HTML Image on a Form
Post by: Bruce on October 13, 2012, 10:46:43 PM
Does your report have the nettalk extension added to it, and the p_web parameter in the parameter list?
Is it in the same app?

cheers
Bruce
Title: Re: Calling Print Report from HTML Image on a Form
Post by: springguy on October 14, 2012, 12:22:53 AM
Thanks guys,

Bill, I use a standard clarion report with the nettalk changes.  That works great to produce a PDF file.  Bruce's approach to reports is brilliant.

Bruce, I did have the nettalk parameters but stupidly forgot to add the nettalk extension to the report to pdf extension.  Ugh...

Works properly if I add the nettalk extension - imagine that!

Thanks!
Mike
Title: Re: Calling Print Report from HTML Image on a Form
Post by: bshields on October 14, 2012, 03:50:03 AM
oh cool... Sorry I tend to hand code reports, so i didn't realise that the NetTalk extension adds the reports into NetTalks main loop thingy :)
Title: Re: Calling Print Report from HTML Image on a Form
Post by: springguy on October 14, 2012, 01:50:28 PM
Hey Bill,
Most of the Net Talk stuff I do is adding the network application capability to an existing desktop app.  So, one of the really neat things Bruce has done is to allow you to import a clarion ABC report from the desktop into the NetTalk app and make a minor addition and it works.  Great productivity tool!

Yea Bruce!
Mike