BoldSignA modern eSignature application with affordable pricing.
Sign up today for unlimited document usage!
I'm using the Document Editor as a viewer to display as read-only previously saved document.
I'm setting the control as:
<SfDocumentEditorContainer @ref="container" Height="600px" LayoutType="LayoutType.Continuous" EnableToolbar=false ShowPropertiesPane="false" ToolbarItems="@ItemsEmpty" RestrictEditing="true">
<DocumentEditorContainerEvents Created="OnCreated" >
OnCreated method I load the content of the document.
If I set Height="100%", it sets the height to 100% of the view port, not the document content.
I want to set the Height of the container to the full length of the document and avoid any scrollbars appearing.
Is this possible?
I'm trying to do something similar to this but in Blazor:
Is it possible?
We regret to inform you that setting the height to the full length of a document to avoid a scroll bar is not possible.
I've found a workaround using DocIO. Opening the sfdt content into a Word document and then saving it to Html.
var doc = WordDocument.Save(sfdt);
using (MemoryStream ms = new MemoryStream())
Then you can render the resulting Html using MarkupString.
Hope this helps to anyone looking for something similar.
You can now close this thread.