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!