Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support


All forums · Statistics · Search ·

Two Pilots forum / For software developers / cannot open file www.test.com/images/abc.jpg
Author Message
Paritosh
Member
# Posted: 21 Nov 2005 12:15 · Edited by: Paritosh


I am trying to display an image from the webserver's directory.And i am writing code for that like this :

imgpath_db = rs_img("photo")
f = "http://www.test.com/images/" & imgpath_db
'k = PDF.AddImageFromFileName("http://www.test.com/images/" & imgpath_db, 1)
k = PDF.AddImageFromFileName(f, 1)

I get error after this line of code.It shows error window with the below text :

Run-time error - '-2147418113(80000ffff)':
Cannot open file : [url=http://www.test.com/images/abc.gif
]http://www.test.com/images/abc.gif
[/url]

I also checked the image location manually.

Please tell me how can i display image from webserver in pdf file ?
i was able to display image from local

Stanislav
# Posted: 21 Nov 2005 14:02


Dear Paritosh,

There is no such function in PDF Creator Pilot, you can add only local images using AddImageFromFileName.

Thank you very much !

Best regards,
Stanislav
Two Pilots

Paritosh
Member
# Posted: 21 Nov 2005 14:06


Thanks Stanislav,

Then please tell me some option to display images in pdf file from remote server.
Urgent please.

Stanislav
# Posted: 21 Nov 2005 14:16


Dear Paritosh,

You should download them and store on local machine, or download and pass bitmap handle to library. To download you can use any libraries - WinInet API or MFC or any other.

Thank you very much !

Best regards,
Stanislav
Two Pilots

 

 

Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.013

 

Page top