Emails not rendering correctly in 18.6.1


#21

We based our implementation on the ModrenUI demo:

var options = extension != null && extension.ToLower().StartsWith(".xls") ?
new DocumentInfoOptions
{
CellsOptions = new CellsOptions
{
CountRowsPerPage = 150,
OnePagePerSheet = false
}
}
: new DocumentInfoOptions();

In this case we pass a new DocumentInfoOptions();

Thanks,
Darryl.


#22

Sorry Usman,

It seems that the nuget update-package didn’t quite do it’s job properly - The debug/Modules window shows I was still loading version version 18.8 of the GroupDocs.Viewer.dll

I’ll fix that and try again.


#23

@dbaker1,

Thanks for providing the required details.

We investigated your reported behavior at our end and found that when getting information about your provided .msg file using ViewerImageHandler, GetDocumentInfo gives page count = 5, whereas GetDocumentInfo with ViewerHtmlHandler gives page count =1. The reason behind this behavior is that in image-based rendering it is not appropriate to convert a large document into a single image, therefore, the API breaks down the provided document into 5 pages and renders each as a separate page. However, in the case of HTML based rendering, GetDocumentInfo returns page count =1 and the whole document is converted into a single HTML page.

To avoid any issue, please make sure that you are using the appropriate ViewerHandler when getting document information as well as when rendering the document. For reference, we have created this (109.3 KB) sample application for you that will demonstrate how to use the appropriate ViewerHandler. Hope it helps.

No problem at all. You can try again and share your feedback with us.


#24

Thanks Usman,

I have a single helper method that creates the handler, so we are using the same one - it now seems highly likely that I’ve not been using the correct version somehow.

I’ll let you know how I get on out of courtesy - it’s likely to be Monday as it is nearly home time here.

Thanks again,
Darryl.


#25

@dbaker1,

Sure, we shall be looking forward to hearing from you.