Loading...

Getting errors when trying to draw lines and text

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Getting errors when trying to draw lines and text

Postby MCHSRAS » Fri May 09, 2008 7:38 pm

Hello,

I am new to the product, and could sure use a little help understanding what I'm doing wrong.
I've been struggling to determine how to enter text and draw circles, lines, to highlight a specific part of the images and add comments. I can import an image into the viewer, and zoom, rotate and all, but my clients (physicians) will need a way to highlight and put comments in their images.
Some of the errors I'm receiving are missing objects and such, so I think I'm missing an event between bringing the object into the viewer and attempting to draw lines or text.

I am working with MSAccess, and am beginning to wonder if the environment isn't robust enough to do some of the methods.

Any assistance at this point would be most appreciated.

Thanks
MCHSRAS
 
Posts: 6
Joined: Thu Apr 24, 2008 2:16 pm

Re: Getting errors when trying to draw lines and text

Postby Loïc » Tue May 13, 2008 11:36 am

Hi,

It will be hard to give you assistance with the informations you provided:

Some of the errors I'm receiving are missing objects


This error message dosn't seems to come from the GdViewer object you are using.

We can help you to use methods, events & properties of the GdViewer object but you need to give use more details on the problems you are experiencing to use it.

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: Getting errors when trying to draw lines and text

Postby MCHSRAS » Tue May 13, 2008 3:52 pm

Loic, I have created an Access form with the Gdviewer and Imaging controls on the form. I'm loading an image from one of our medical applications onto the viewer and can do that part with no problem. However, I need to be able to draw circles and arrows to specific parts of the image and enter notes concerning parts of the image. When I do this part of the process, it is my understanding that I need to do this with methods and properties from the imaging control. I was trying to use the SetNativeImage method and that's when I got the Missing Objects messages. There seems to be a disconnect between the GdViewer and Imaging control that I'm not familiar on how to overcome.

I've been using the vb samples and they are helpful to a point, but I'm attempting to do something a little different and am running some difficulty.

Thanks for your time and assistance.

Don
MCHSRAS
 
Posts: 6
Joined: Thu Apr 24, 2008 2:16 pm

Re: Getting errors when trying to draw lines and text

Postby Loïc » Wed May 14, 2008 10:25 am

Hi Don,

I was trying to use the SetNativeImage method and that's when I got the Missing Objects messages.
There seems to be a disconnect between the GdViewer and Imaging control that I'm not familiar on how to overcome.


Could you give me the code you are using to trying to do that ?

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: Getting errors when trying to draw lines and text

Postby MCHSRAS » Wed May 14, 2008 3:45 pm

Loic, Below is a sample of the error message and code that will not seem to recognize
Private Sub cmdLoadClipboard_Click()
GdViewer0.DisplayFromClipboardData
GdViewer0.CreateImageFromClipboard
GdViewer0.SetNativeImage (Me.Imaging1.CreateNewImage(600, 600, 32, White))
End Sub


The error message I'm getting is : Run-Time error 438:
Object doesn't support the property or method

This is my first time with such a complicated OCX and I could really use some help in understanding how to use it.

Don
MCHSRAS
 
Posts: 6
Joined: Thu Apr 24, 2008 2:16 pm

Re: Getting errors when trying to draw lines and text

Postby Loïc » Wed May 14, 2008 3:50 pm

Ok, but what is the line which raise this error ??
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: Getting errors when trying to draw lines and text

Postby Loïc » Wed May 14, 2008 3:52 pm

Here you have a problem:

Code: Select all
GdViewer0.CreateImageFromClipboard


The GdViewer class doesn't get a CreateImageFromClipboard method..
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: Getting errors when trying to draw lines and text

Postby MCHSRAS » Wed May 14, 2008 8:14 pm

Loic,

I changed that line of code to imaging1.CreateImageFromClipboard
and it now seems to work.

I then fixed the following line of code to imaging1.SetNativeImage (GdViewer.GetNativeImage) and I can now draw lines and circles freehand which is one of my requirements. So thanks so much with your help thus far!!

I do have several other issues I am working on and perhaps you could let me know which method to use. I need to insert a textbox with text in it on the image so the Doctor can explain an issue or problem to their protege. Is this possible using the methods available?

As I mentioned earlier, I'm using what I can find in the samples, however, I cannot find anything that comes close to this need. Any help you can give me would be appreciated.

Don
MCHSRAS
 
Posts: 6
Joined: Thu Apr 24, 2008 2:16 pm

Re: Getting errors when trying to draw lines and text

Postby Loïc » Mon May 19, 2008 1:37 pm

I do have several other issues I am working on and perhaps you could let me know which method to use. I need to insert a textbox with text in it on the image so the Doctor can explain an issue or problem to their protege. Is this possible using the methods available?


Yes you can do that.

Please download the last GdPicture Pro package and check the visual basic sample named "Text Writter".

Best regards,

Loïc Carrère
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


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest