CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2001
    Location
    Canada
    Posts
    182

    Show Adobe PDF file in VB and save it to SQL Sever

    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

  2. #2
    Join Date
    May 2001
    Location
    Canada
    Posts
    182

    Re: Show Adobe PDF file in VB and save it to SQL Sever

    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

  3. #3
    Join Date
    May 2002
    Location
    CANADA
    Posts
    55
    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?

  4. #4
    Join Date
    May 2001
    Location
    Canada
    Posts
    182
    The code for me is fairly simple. I am using pdf.ocx version 5.0.5.452

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured