Click to See Complete Forum and Search --> : Show Adobe PDF file in VB and save it to SQL Sever


michi
October 9th, 2001, 07:13 PM
Hi guys,

Does anyone know how to show a Adobe pdf file or picture in VB? Do I need any additional control?

In addition, I want to save the pdf file in SQL Server 7.0 database. If we can treat the pdf file like general picture (like Bmp or others), there should be no problem. But it seems that SQL Sever doesn't think pdf is a picture file type. Can you help me?

Thank you.


Regards,

Michi

michi
October 10th, 2001, 06:00 PM
OK, I made it through by myself. I added a control to my project:

Acrobat Control for ActiveX (file name: pdf.ocx)

It will show PDF file. To save this file to DB, just like to save a general image.

Regards,

Michi

treitus
June 20th, 2002, 11:47 AM
I have added the pdf.ocx in my program as well, but I cant seem to populate on a VB form. Can you tell me how you did that?

michi
June 20th, 2002, 03:41 PM
The code for me is fairly simple. I am using pdf.ocx version 5.0.5.452



pdfImage.Visible = True
Call pdfImage.LoadFile(strFullyQualifiedFileName)