NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ccordes on September 16, 2010, 08:06:33 AM

Title: report in a page?
Post by: ccordes on September 16, 2010, 08:06:33 AM
Can I display a report inside a page?
I need some bettter way to return from a report than the back button. I thought I could include the report in the XHTML for a page with a simple
<HR />
<!-- Net:myreportprocedure -->
<HR />

This doesn't work :(
thanks
chris
Title: Re: report in a page?
Post by: alex.kolaric on September 16, 2010, 11:31:17 AM
Hi Chris,

I was thinking that exporting report into HTML page using standard Clarion rpt->html functionality and then including such static page can be used to achieve this. As a matter of fact I generated one page report and included it on the page generated by nettalk. Since report page is generated using absolute positioning the key is to position it within a div to make absolute positioning relative to the page. However I didn't do all the coding for this since I just wanted to see if HTML generated by clarion can be used. There is also the question of multi page reports - how to show them on the same page.

hope this helps,
Alex
Title: Re: report in a page?
Post by: ccordes on September 16, 2010, 11:58:50 AM
Since this report needs to be used to print a label, I need the sure positioning of the PDF.
For other informational reports, that may be a neat way to do it.

thanks
Title: Re: report in a page?
Post by: Bruce on September 18, 2010, 03:31:22 AM
Hi Chris,

research the html required to embed a pdf inside an html page.

cheers
Bruce
Title: Re: report in a page?
Post by: ccordes on September 20, 2010, 11:44:13 AM
BRILLIANT!  :o

<iFrame src="TheProcedureNameThatDoesTheSendFile" height=h width=w>x</iFrame>

I see - the report presents itself or output as a PDF streaming to the /from the server.

thanks