NetTalk Central

Author Topic: Printing Images on reports  (Read 4170 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Printing Images on reports
« on: March 12, 2010, 11:31:57 AM »
I have 2 requirements
1. print an image on the report specified at runtime
Question  which location should the image be in
a. The folder above web
 or b. web folder
and how do I nominate the path to it.
I have tried both of these in the after the opening window embed point with no result
SETTARGET(Report)
?Draw{PROP:Text} = 'client.jpg'
SETTARGET() 

or

Report$?Draw{prop:text}='.\client.jpg'

2. Print an image on the report
same questions where should the image be and how do I specify the path to it
I have a standard report which prints the image, but once I convert it to a Nettalk report there is no image and I assume it is the pathing which is the problem
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Printing Images on reports
« Reply #1 on: March 16, 2010, 09:49:56 AM »
Sorry. Is my question unclear?
Please let me know and I will reword it if so.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Printing Images on reports
« Reply #2 on: March 16, 2010, 08:03:22 PM »
Hi Terry,

I think you might be barking up the wrong tree.
Personally I'd put the image in the application folder, and set the name to
?Draw{PROP:Text} = 'client.jpg' just like you would for any clarion report.

Remember the report procedure, if called without the p_web parameter, will work as a normal Clarion report, so you can check to see if the Jpg is in the report. If it is then the problem would appear to be with the converter you are using (to pdf).

As a test, put a button on a window in your app, and call the report as a normal windows report to see what happens.

cheers
Bruce

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Printing Images on reports
« Reply #3 on: March 17, 2010, 02:48:24 AM »
Bruce
Thats exactly what I did to establish what the problem was.
On option 1 I created a standard report which I Run through a button on the Webserver screen.
The image is specified (i.e. not at runtime) and the image prints on the report.
I then copy the report and set it up as a Webreport. When I run the webreport there is no image on the report.
What can I be doing incorrectly?
Thanks
Terry Davidson
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Printing Images on reports
« Reply #4 on: March 17, 2010, 05:53:24 AM »
I don't think it's the web server Terry, that just serves the PDF.
It sounds like the PDF itself isn't being created with the images embedded in it.

What PDF converter are you using? and in which build of clarion?

Cheers
Bruce