PDF image in userform

Solved
NIC -  
 nic -
Hello,
can we integrate a PDF image into a VBA userform?
if so, how????
nic
Configuration: Windows 2000 Internet Explorer 6.0

7 answers

  1. aquarelle Posted messages 7181 Registration date   Status Moderator Last intervention   1 311
     
    Hello,
    To insert an image in pdf format in Microsoft Visual Basic ---> "Insert" and then select your "UserForm", the UserForm will appear, in the "toolbox", choose from "controls" --> "Images" and draw to the size you want for your pdf image in the UserForm. Then select the image in the "Picture" property.
    Have a nice day
    --

    "To find a solution to one’s problems, one must put in the effort."
    0
    1. nic
       
      Hi
      thank you for your response but it's the first method I used:
      When I browse my folders with the "picture" property, none of my pdf files appear. They are not treated as images.


      ps for the site: "To find a solution to your problems, you have to put in the effort." is inappropriate.
      0
  2. aquarelle Posted messages 7181 Registration date   Status Moderator Last intervention   1 311
     
    Hello,
    To display your files, you need to click on the menu and show files *.* and not just image files: jpeg, bmp ... so that your pdfs will be visible in your list and you can insert your pdf into the UserForm.
    Have a nice day

    PS: I think my quote is actually very well suited to the site because some are waiting for an answer from heaven without even providing a minimum of information or doing a minimum of research.
    --

    "To find a solution to one’s problems, one must put in the effort."
    0
    1. ray75
       
      HELLO
      I agree with Nic because I have the same problem.
      When I try to follow the mentioned procedure, I get the message "incorrect image."
      0
  3. aquarelle Posted messages 7181 Registration date   Status Moderator Last intervention   1 311
     
    'Read,
    Perhaps it's due to the version of Excel? I have Excel 2003 and it works.
    --

    "To find a solution to one's problems, one must make the effort."
    0
  4. aquarelle Posted messages 7181 Registration date   Status Moderator Last intervention   1 311
     
    I just tested with a new PDF image, but this time I chose a larger one, so my PDF file is also bigger, and indeed the method does not work :/
    I will therefore try with another control and keep you updated.
    See you later

    --

    "To find a solution to your problems, you have to make an effort."
    0
  5. aquarelle Posted messages 7181 Registration date   Status Moderator Last intervention   1 311
     
    Hello,
    It is possible to display a PDF image in the UserForm without adding an image control, but by directly clicking on the "Picture" property of the UserForm.
    Have a nice day
    --

    "To find a solution to one's problems, one must make an effort."
    0
  6. nic
     
    hi
    thanks for the info, but I think the problem comes from my version of Excel (2000) because I'm still getting an error message.
    I think I need to tinker with my pdf images to be able to import them in another format (wmf, jpg...).
    (or upgrade to Excel 2003!)
    see you later
    0
  7. nic
     
    Hello
    the lecture was indeed interesting. I should be able to do something.
    thank you
    have a good day
    0