GenoPro Home
|
Get Started With My Genealogy Tree
|
Buy
|
Login
|
Privacy
|
Search
|
Site Map
GenoPro Support Forum
Home
Search
Tags
Who's On
Welcome Guest
(
Login
|
Register
)
Recent Posts
Popular Topics
Home
»
GenoPro Help and Technical Support
»
Using GenoPro - How to...
»
Some bugs of GenoPro Active X
Some bugs of
GenoPro
Active X
Rate Topic
Topic View
Topic Options
Author
To store the drawing into database
Quad
Posted Thursday, October 23, 2008
-
Post #22918
Forum 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.Create
GenoPro
InstanceIfNeeded();
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 doc
GenoPro
_FireSaveDocument()
doc
GenoPro
.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_
GenoPro
Document_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
Reading This Topic
Powered By InstantForum.NET 2010-3-x © 2025
Execution: 0.031.
4 queries.
Compression Enabled.
Search All Forums...
GO
Advanced Search
Rate Topic
Great
Good
Average
Bad
Poor
Rate This Topic
Flat Ascending
Flat Descending
Threaded
Subscribe To Topic
Print This Topic
Goto Topics Forum