Thanks for your help.
After I can download this pdf file in a OLE control object. Open it with Adobe Reader and to update the blob in database, I can use UpdateBlob statement. It's right?
Main Topics
Browse All TopicsI use Powerbuilder 10.5 and I want to create/open PDF File from Powerbuilder. PDF File is saved in database in a blob.
It is possible to open this PDF File directly in a window in PB ? saveAs or print of the document?
I can use ActiveX?
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
as you are using PB 10.5 change Rosh's code as below
blob lb_pdf
selectblob field_with_the_pdf_in_db
into :lb_pdf
from TABLE_WITH_PDF
where //your conditions
using sqlca;
long pos
integer li_filenum, loops, i
blob b
//Erase a temporary file and open it in write mode
li_filenum=fileopen("c:\te
filewrite(li_filenum, blob(""))
fileclose(li_filenum)
li_filenum=fileopen("c:\te
filewriteex(li_filenum,lb_
fileclose(li_filenum)
Now once this file is create you can use Microsoft Web Browser ole in your window and can load the pdf file in it.
ole_1.object.navigate('c:\
and now you can save, print the pdf.
Regards,
Sandeep
Business Accounts
Answer for Membership
by: diasroshanPosted on 2009-03-04 at 02:58:09ID: 23793473
Hi,
mp\filenam e.pdf",str eammode!,w rite!,shar ed!,replac e!) mp\filenam e.pdf",str eammode!,w rite!,shar ed!,append !)
)
give this a try,
posted by one of our experts but with some changes,
blob lb_pdf
selectblob field_with_the_pdf_in_db
into :lb_pdf
from TABLE_WITH_PDF
where //your conditions
using sqlca;
long blen,pos
integer li_filenum, loops, i
blob b
blen = len(lb_pdf)
//Erase a temporary file and open it in write mode
li_filenum=fileopen("c:\te
filewrite(li_filenum, blob(""))
fileclose(li_filenum)
li_filenum=fileopen("c:\te
//Determinate how many times to call fileread
if blen>32765 then
if mod(blen,32765)=0 then
loops=blen/32765
else
loops=(blen/32765)+1
end if
else
loops = 1
end if
//Write to the file
pos=1
for i = 1 to loops
b=blobmid(lb_pdf,pos,32765
filewrite(li_filenum,b)
pos+=32765
next
fileclose(li_filenum)
Cheers,
Rosh