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

GenoPro Support Forum




Automating genogram display

Click to view RSS...
Author SDK OLE Automation: GetPictureOfGenoMap and SavePictureOfGenoMap
Posted Thursday, April 10, 2008 - Post #21336
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members
GenoPro version: 2.0.1.6

Last Login: Saturday, August 23, 2008
Posts: 9, Visits: 17
How to use those two methods in SDK OLE Automation? We are not very sure how to pass parameters for those two methods.

Actually we want to get a image copy of the Genogram in our application through SDK OLE Automation.

Can we achieve that?

Thanks.

Edited: Thursday, April 10, 2008 by GenoProSupport

Posted Thursday, April 10, 2008 - Post #21339
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 2:09 PM
Posts: 4,887, Visits: 22,761
The full source code is available for download at http://www.genopro.com/sdk/automation/ in the file http://www.genopro.com/sdk/automation/GenoProAutomationVB6.zip
Private WithEvents m_GenoPro As GenoPro.Document

Private Sub btnOpenGenoPro_Click()
    Set m_GenoPro = New GenoPro.Document
    m_GenoPro.SetTextXML (txtSource.Text)
    m_GenoPro.SavePictureOfGenoMap 0, "c:\genomap.emf"
End Sub


Tags:
API, SDK


Edited: Thursday, April 14, 2011 by GenoProSupport
Posted Thursday, April 10, 2008 - Post #21340
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members
GenoPro version: 2.0.1.6

Last Login: Saturday, August 23, 2008
Posts: 9, Visits: 17
Our company is all using C#, so I have downloaded GenoProAutomationCsharp.zip. And try to use GetPictureOfGenoMap. What should I pass in for the parameter (ref object).? I have tried a lot of times, but no idea.  I also notice that this method returen Object. What is the object?

Thanks very much for your help.

Posted Thursday, April 10, 2008 - Post #21341
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members
GenoPro version: 2.0.1.6

Last Login: Saturday, August 23, 2008
Posts: 9, Visits: 17
We need to integrate the genogram diagram to our standard reports in the easy way, that's why we are thinking to get a image (BMP or JPEG) copythrough SDK. We are planing to purchase the site license if it is durable. I hope License type is Perpetual.

Edited: Wednesday, April 22, 2009 by GenoProSupport
Posted Thursday, April 10, 2008 - Post #21342
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Gamma
Moderators
Administrators
FamilyTrees.GenoPro.com
Customers
GenoPro version: 3.1.0.0

Last Login: Wednesday, October 7, 2020
Posts: 952, Visits: 10,075
Your right, purchasing GenoPro is not a subscription - that is, it is a one-time payment where can use it forever without spending any extra money. Site license allows everyone in the organization to use GenoPro both at work or at home for personal project.

Purchasing GenoPro does not give lifetime free upgrades.  We will offer comprehensive discounts for customers upgrading to future versions.

Edited: Thursday, April 10, 2008 by GenoProSupport

Posted Thursday, April 10, 2008 - Post #21343
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 2:09 PM
Posts: 4,887, Visits: 22,761
414485 (4/10/2008)
Our company is all using C#, so I have downloaded GenoProAutomationCsharp.zip. And try to use GetPictureOfGenoMap. What should I pass in for the parameter (ref object).? I have tried a lot of times, but no idea.  I also notice that this method returen Object. What is the object?

Thanks very much for your help.

In the ideal world, GenoPro should also be available in a dynamic-link library (DLL), where the GenoPro's objects would be available within the same process address space as your project.

If you give us a bit more information of your needs, I may be able to assist you, or perhaps add a routine to make your project work.

Posted Thursday, April 10, 2008 - Post #21344
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members
GenoPro version: 2.0.1.6

Last Login: Saturday, August 23, 2008
Posts: 9, Visits: 17
That's good. We are not expecting free upgrading forever, it is not right. Normally how long is the period for free upgrading? How much you charge for upgrading? how long is the period for free upgrading again after upgarde? 

Thanks.

Posted Thursday, April 10, 2008 - Post #21345
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 2:09 PM
Posts: 4,887, Visits: 22,761
414485 (4/10/2008)
That's good. We are not expecting free upgrading forever, it is not right. Normally how long is the period for free upgrading? How much you charge for upgrading? how long is the period for free upgrading again after upgarde? 

Thanks.

Since GenoPro 1.00 was released, everyone got a free upgrade to GenoPro 2007, including those who purchased GenoPro at $10 back in year 2000.  Since its release, GenoPro 2007 had 14 free updates, including the availability of GenoPro in 26 languages.  Every major update includes free updates for at least one year, and perhaps two years.  We plan to release a new upgrade every two years.  You still have one year to use GenoPro 2007.

Our upgrade policy is a 50% to 80% discount of the purchased price, depending on the time you purchased GenoPro before the upgrade become available.  We will have a preview of GenoPro Gamma available in a few months, however this version will be available to our selected customers for testing purpose.

Edited: Thursday, April 10, 2008 by GenoProSupport

Posted Thursday, April 10, 2008 - Post #21346
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members
GenoPro version: 2.0.1.6

Last Login: Saturday, August 23, 2008
Posts: 9, Visits: 17
Thanks for your reply.

We are software house to develop EMR system for hospitals. Some of them now asked for genogram module. Now one hospital is confirmed to want the module. We are exploring whether we can use GenoPro to build that module.

Our plan is that launch GenoPro through the OLE Automation, so users can draw genogram in GenoPro and we can get the XML info when users quit GenoPro. We will save those info to server. It is no issue about that. But users also need to include the genogram diagram in standard reports. The easy solution for us is that we also get one image copy of diagram when users quit the genopro, so we can save it to the server and can easily use it in our reports. Now I do not know whether we can get the image copy of diagram easily (it can be BMP or JPEG file. Even can in Clipboard). Actually we know you have copy function, we can get the image copy from clipboard, but users do not accept extra steps. We must be able to get it automatically.

I think we can more or less confirm the deal if you can help us to confirm that we can do that.

I also have confidence to sell more Site licences to other hospital in the future if things are work well.

Thanks.

Posted Thursday, April 10, 2008 - Post #21347
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 2:09 PM
Posts: 4,887, Visits: 22,761
But users also need to include the genogram diagram in standard reports.


One mechanism
By the way, GenoPro 1.x was capable to generate RTF reports with embedded PNG files. The RTF reports have been disabled for GenoPro 2007 because of Unicode issues. Since Version 2.0.1.2, GenoPro includes Microsoft Word and OpenOffice reports. Perhaps I could add new methods to include a genogram inside those reports.

The easy solution for us is that we also get one image copy of diagram when users quit the genopro, so we can save it to the server and can easily use it in our reports.

You can call the method SavePictureOfGenoMap() at the same time you save the XML genogram. You can do this when the user quits GenoPro, or trap the Save event when the user clicks on the Save button. The method SavePictureOfGenoMap() will create a metafile (vector-based image with transparent background) of the genogram. The first parameter is a zero-based index of which GenoMap you want to save. You can import/include the metafile in any word processor, or render it to a Bitmap or PNG. I would avoid the JPEG format for genograms because they will produce bigger files and blured images.


Actually we know you have copy function, we can get the image copy from clipboard, but users do not accept extra steps. We must be able to get it automatically.

I can provide you a method named CopyPictureOfGenoMapToClipboard() where the entire genogram is automatically copied to the clipboard. On your side, you extract the clipboard content and paste it wherever you like.


Edited: Thursday, April 10, 2008 by GenoProSupport


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse