Loading...

Invalid Image: Can not get picture height

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Invalid Image: Can not get picture height

Postby mmImc » Wed Feb 11, 2009 9:59 pm

When I display a document using the AxGdPicturePro5S.AxGdViewer's DisplayFromFile, everything works fine. When I use the GdPicturePro5.cImaging's CreateFromFile then try to load the image handle to the viewer, it gives me the error "Invalid image: Can not get picture height. Below is a demo of the issue. Could you please advise?

Code: Select all
this.axGdViewer1.ZoomMode = GdPicturePro5S.ViewerZoomMode.ZoomFitToControl;

// Displays fine
GdPicturePro5S.GdPictureStatus status3 = this.axGdViewer1.DisplayFromFile("c:\\blah.jpg");

int imageId = this.gdImaging.CreateImageFromFile("c:\\blah.jpg");

// Status returns InvalidParamater, error message states "Invalid image: Can not get picture height"
GdPicturePro5S.GdPictureStatus status = this.axGdViewer1.SetNativeImage(imageId);
mmImc
 
Posts: 10
Joined: Wed Feb 11, 2009 9:52 pm

Re: Invalid Image: Can not get picture height

Postby Loïc » Thu Feb 12, 2009 7:28 pm

Hi,

I can't reproduce this problem. For me it's OK.

Are you using the last edition ?


Best regards,

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

Re: Invalid Image: Can not get picture height

Postby mmImc » Thu Feb 12, 2009 8:06 pm

I found the issue. It seems I had loaded in the 5.10 and 5.9 controls into the toolbox. The errors were being caused by mixing the object versions. Thanks for the reply.
mmImc
 
Posts: 10
Joined: Wed Feb 11, 2009 9:52 pm


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest