We have been using Prince for our print engine for years. We have just licensed the latest version and are trying to upgrade our print engine to use it. This is the method we are using: Performance improving advice/tips?
After upgrading the Prince resources, I kept getting the error: "The pipe has been ended." While trying to troubleshoot the issue, I boiled down my example to this simple method:
I no longer get the exception, but the value of "result" always returns false. Can someone tell what's changed that would be causing these issues?
Thanks,
S. Miller
After upgrading the Prince resources, I kept getting the error: "The pipe has been ended." While trying to troubleshoot the issue, I boiled down my example to this simple method:
public MyStream Render(string princeEnginePath)
{
Prince prince = new Prince(princeEnginePath);
Stream outMemStream = new MemoryStream(100000);
string html = "<html><head><title>Document Title</title></head><body><p>some content</p></body></html>";
bool result = false;
try
{
result = prince.ConvertString(html, outMemStream);
}
catch (Exception)
{
//handle exception
}
if (!result)
{
throw new Exception("Error");
}
outMemStream.Seek(0, SeekOrigin.Begin);
return new MyStream("application/pdf", outMemStream);
}
I no longer get the exception, but the value of "result" always returns false. Can someone tell what's changed that would be causing these issues?
Thanks,
S. Miller