I'm trying to load file contents in DocuVieware Lite programatically using a REST service, using the following code:
Code: Select all
DocuVieware docuViewareInstance = new DocuVieware(sessionId);
using (StringWriter controlOutput = new StringWriter())
{
if (!string.IsNullOrWhiteSpace(filePath))
{
var stream = this.GetDocumentStream(parameters.FilePath);
docuViewareInstance.LoadFromStream(stream, true);
}
docuViewareInstance.RenderControl(controlOutput);
return new DocuViewareRESTOutputResponse
{
HtmlContent = controlOutput.ToString()
};
}
Any help would be greatly appreciated.