GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Some bugs of GenoPro Active X

Click to view RSS...
Author To store the drawing into database
Posted Thursday, October 23, 2008 - Post #22918
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members

Last Login: Thursday, October 23, 2008
Posts: 1, Visits: 2
I have develop a web based system that integrated with GenoPro. Ideally, i will open user local GenoPro program for user to do some drawing then send back to server and keep into database. This project will be develop under silverlight.
I had running several program when interact with GenoPro program:

Problem 1: Due to the silverlight limitation for vbscripts, it is hard for me to directly call vbscripts->call genopro program

Could you provide me some javascripts for interop with your genoPro program?i had try using javascripts method to involve genoPro active x object,but still no luck:

This is what i done:

function CallGenoActiveX(xml)
{

try
{
var Ogeno = new ActiveXObject("GenoPro.Document");
Ogeno.CreateGenoProInstanceIfNeeded();
Ogeno.SetMap(xml);
Ogeno.ShowWindow

}
catch(exception)
{
alert("Failed");
}

}


Beside that, in your sample vbscripts, i found that the function for save is not work when i save genogram:

Sub docGenoPro_FireSaveDocument()


docGenoPro.CopyPictureOfGenoMapToClipboard(0)

End Sub



Problem 2: Due to some limitation, i decided to write my own genoPro active x using C# visual studio 2005,but still running some unexpected result.

from the method: CopyPictureOfGenoMapToClipboard(0)

I not be able access the image contains in clipboard using C#,but the weird thing is i able to paste into a paint using my mouse.
This is my code:
Image img = Clipboard.GetImage();

img will always be null.


Problem 3: By force of the limitation of CopyPictureOfGenoMapToClipboard(0), i save it as temporary physicall image file,then convert to byte[] -> upload it to my web service->insert to database.

I put all my code logic(Upload to web service) at m_GenoProDocument_OnDocumentClosing events when user close the genoPro program, but the problem is i not be able to execute all my logic,only few lines of my code be able to execute when i try debug it, a genoPro will always prompt me with:

Server Busy:
This action cannot be completed because the others program is running.Choose 'Switch To' to activate the busy program and correct the problem.









Edited: Friday, October 24, 2008 by GenoProSupport


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse