SftPrintPreview/DLL 2.0

Restart

Softel vdm, Inc.

The Restart function forces the repositioning of all preview pages and clearing of any cached information.

C

void SftPrintPreview_Restart(HWND hwnd, BOOL fTop);

C++

void CSftPrintPreview::Restart(BOOL fTop = TRUE);

Parameters

hwnd

The window handle of the Print Preview control.

fTop

Set to TRUE to position the preview at the first page.  Otherwise set to FALSE to display the last page(s).

Comments

The Restart function forces the repositioning of all preview pages and clearing of any cached information.

This is typically used if printer attributes or page formatting changes, which requires all pages to be reformatted.  

Example

C

SftPrintPreview_Restart(m_hwndPreview, TRUE);

C++

m_Preview.SftPrintPreview_Restart();

See Also  C/C++ API  |  C++ Classes  |  Notifications


Feedback / comments / error reports for this topic
© 2016 - Softel vdm, Inc. - www.softelvdm.com