private void previewPanel_Resize( object sender, EventArgs e )
{
if (_officePreviewInstance is IPreviewHandler)
{
//Rectangle rect = previewPanel.ClientRectangle;
try
{
var rect = new RECT();
rect.left = 0;
rect.top = 0;
rect.right = previewPanel.Width;
rect.bottom = previewPanel.Height;
( (IPreviewHandler) _officePreviewInstance ).SetRect( ref rect );
}
catch (Exception err)
{
LogManager.Debug( err );
}
}
}