How to open an estime or database from a file
You can programmatically open an estimate or article DB from a file. As a result, you'll get IEstimate or IArticleDatabase object.
To do so, use the factories provided by the QdvManager class. These factories allow for opening any estimate or an article database from a file.
The QdvManager serves as an entry point for retrieveing QDV factories and other services. The QdvManager instance is accessible in two ways. In macros, you can get it from the macro's context parameter via ICommonCallingContext.QdvManager property. In external clients, it's accessible in QdvUserApiManager property of the Qdv.QdvInterface.Qdv class, that you get after creating a QDV interface.
The following example shows how to open an estimate in a QDV macro.
Dim myEs As IEstimate = context.QdvManager.EstimateFactory.GetEstimate("c:\estimate.qdv")
This language is not supported or no code example is available.
IEstimate myEs = context.QdvManager.EstimateFactory.GetEstimate("c:\estimate.qdv");
This language is not supported or no code example is available.
The following example shows how to open an article DB in a QDV macro.
Dim articleDb As IArticleDatabase = context.QdvManager.ArticleDatabaseFactory.GetArticleDatabase("articleDb.qdb")
This language is not supported or no code example is available.