NetTalk Central

Author Topic: report in a page?  (Read 3544 times)

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
report in a page?
« 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
Real programmers use copy con newapp.exe

alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
Re: report in a page?
« Reply #1 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

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: report in a page?
« Reply #2 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
Real programmers use copy con newapp.exe

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: report in a page?
« Reply #3 on: September 18, 2010, 03:31:22 AM »
Hi Chris,

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

cheers
Bruce

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: report in a page?
« Reply #4 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
Real programmers use copy con newapp.exe