SftPrintPreview/OCX 1.0

SftPrintPreview.Restart Method

Softel vdm, Inc.

Forces the repositioning of all preview pages and clearing of any cached information.

Syntax       

VB.NET

object.Restart(ByVal Style As SftPrintPreviewRestartConstants)

VB

object.Restart(ByVal Style As SftPrintPreviewRestartConstants)

C#.NET

void object.Restart(SftPrintPreviewRestartConstants Style);

VC++

HRESULT object->Restart(enum SftPrintPreviewRestartConstants Style);

C

HRESULT object->raw_Restart(enum SftPrintPreviewRestartConstants Style);

Delphi

procedure object.Restart(Style : TOleEnum);

object

A SftPrintPreview object.

Style

Defines the type of repositioning and clearing of cached information.

Name

Value

Description

restartSftPrintPreviewComplete

0

Complete - Repositions all pages, all pages are invalid and clears all cached information.

restartSftPrintPreviewTop

1

Top - Repositions all pages and displays the first page.

restartSftPrintPreviewBottom

2

Bottom - Repositions all pages and displays the last page.

restartSftPrintPreviewCurrentPage

3

Current Page - The current page is invalid and clears cached information for the current page.

restartSftPrintPreviewAllPages

4

All Pages - All pages are invalid and clears all cached information.

Comments

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

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


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