Loading...

Windows Metafiles

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Windows Metafiles

Postby Carlos » Fri Jul 27, 2007 2:05 pm

Hi Loïc,

I have instaled the last version of GdPicture Pro.
The program I'm trying to perform is just to view Word documents.
This is the code :
Code: Select all
    Dim oWord As Word.Application
   
    Dim oGdPictureLocal As New GdpicturePro.cGdPicture
    oGdPictureLocal.SetLicenceNumber "XXXX"
   
    Set oWord = CreateObject("Word.Application")
   
    oWord.Documents.Open FileName, False, True, False
    oWord.Documents(1).Activate
   
    Clipboard.Clear
   
    oWord.Documents(1).Select
    oWord.Selection.CopyAsPicture
    oWord.Application.Documents(1).Close False
    oWord.Quit
    Set oWord = Nothing

    Picture1.Picture = Clipboard.GetData(3)
    Picture1.Width = Picture1.Picture.Width / Screen.TwipsPerPixelX
    Picture1.Height = Picture1.Picture.Height / Screen.TwipsPerPixelY
   
    oGdViewer.DisplayFromClipboardData

     'or

    'oGdViewer.DisplayFromStdPicture Picture1.Picture


Word CopyAsPicture funtion export the image as wmf.
The image on GdViewer is displayed with the screen resolution width and height, and the image on picture1 is show perfectelly.

Can you help me?

Thanks
Carlos
 
Posts: 1
Joined: Fri Jul 27, 2007 1:54 pm

Postby Loïc » Fri Jul 27, 2007 3:05 pm

Hi Carlos,

You are right.

I've made a new fix to keep the original horizontal and vertical DPI.

Please download the last version.


Best regards,

Loïc Carrère
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 2 guests