Generating documents through the SDK - which dlls are needed?
Posted: Mon Jul 04, 2022 12:31 pm
I'm currently developing a new feature for our internal application that would need to automate the process of generating documents found in Select. For now I'm doing this in a standalone console application for testing purposes, but this will be part of an internal web app. When trying to run it though, I'm getting a fairly cryptic error that I can't understand. Here's the code I'm messing with:
The error that I'm getting is the following:
I guess my question is: Which dlls are needed for document generation, and which ones am I missing? Thanks in advance!
Code: Select all
public static void Run()
{
var nc = new NetworkCredential(_selectUser, _selectPassword, "[SERVER]");
using (SelectServer ss = new SelectServer(new Uri(_selectUrl), nc))
{
IOrderStore orderStore = ss.GetService<IOrderStore>();
IOrderInfo orderInfo = orderStore.Orders.Where(t => t.Number == "MY_TEST_ORDER").FirstOrDefault();
IDocumentManager dm = ss.GetService<IDocumentManager>();
IRendererFactory rendererFactory = ss.GetService<IRendererFactory>();
IRenderer renderer = rendererFactory.Create();
IDocumentInfo docInfo = dm.Documents
.Where(t => t.Title == "Abstract Search Request")
.FirstOrDefault();
IRendering rendering = renderer.Render(docInfo, orderInfo, new RenderPrompts()); //this line blows up
}
}
Just to get to that point, I had to add references to various dlls (that were not part of the Select SDK install), such as Softpro.Documents.Client, SoftPro.Documents.Rendering.TXTextControl and a handful of others.An unhandled exception of type 'System.Exception' occurred in TXTextControl.dll
Additional information: The module for displaying images could not be found.
(01-0804)
I guess my question is: Which dlls are needed for document generation, and which ones am I missing? Thanks in advance!