Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

please give me the short way to vie

Status
Not open for further replies.

khaleddawood

Programmer
Jan 2, 2001
3
0
0
EG
please give me the short way to view ,print any image format in power builder applications
 
Up to Powerbuilder 6.5 only .BMP image files are supported. As far as I know in version 7 and up .JPG and some other is also supported. But to place an image on a window, create a new one of course and then select the picture object from the list. Go to it's properties and assign a picture to it. Remember to click "original size" if you want it to auto size the picture on you window. To print the picture put the following piece of code in your print button or what ever you use to print with.

long Job

Job = PrintOpen( )
p_1.Print(Job, x,y)
PrintClose(Job)

X and Y is your x and y coordinates of your picture

regards

Tentacle
e-mail: contact_tentacle@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top