You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Print Image in SQR

4 replies [Last post]
Guest's picture
Guest

Hi,

I have a sqr report wherein I have to print the company's logo.
When I execute this in my machine , I am able to print the logo on the report.
But when I move it to the unix server / NT server and try executing it, then instead of the logo, I get a blank envelope-like box.

We are on Peopletools version 8.21 .

Appreciate all your help with this .

Let $ImagePath = 'C:\Mysqrs\new.jpeg'

!Rpt-Header

PRINT-IMAGE (2,67)
TYPE=JPEG-FILE
IMAGE-SIZE=(10,2)
SOURCE = $ImagePath

simrose's picture
User offline. Last seen 5 years 4 weeks ago. Offline
Joined: 08/01/2008
Posts: 33
Re: Print Image in SQR

You need to place the image file on file server instead of your local machine path ( 'C:\Mysqrs\new.jpeg' )

Cheers
Sim

Ashwin's picture
Ashwin (not verified)
Re: Print Image in SQR

Thanks for the response Sim,

I have placed it on the file server. That was the code tat i used in my local machine... Sorry about that.

Even when I place the jpeg image on the file server , then the logo is not displayed correctly.

simrose's picture
User offline. Last seen 5 years 4 weeks ago. Offline
Joined: 08/01/2008
Posts: 33
Re: Print Image in SQR

Try this

In Sqr program in set up section

begin-setup
declare-image Sim_logo
type=bmp-file
image-size=(30,7)
source='servername|ip / folder /simogo.bmp'
end-declare
end-setup

In Sqr main section or any procedure

use Print-IMAGE Sim_logo (X,Y)

Regards
Sim

krisvamsi2005's picture
User offline. Last seen 6 years 6 weeks ago. Offline
Joined: 03/11/2008
Posts: 17
Re: Print Image in SQR

are you running this process thru process scheduler or thru command line

Thanks,
Vamsi Krishna