NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd 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
-
Sorry. Is my question unclear?
Please let me know and I will reword it if so.
-
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
-
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
-
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