Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreview.RenderingInfo Property

Returns the information required for the page rendering event RenderContent.

Syntax

Get

VB.NETDrawInfo = object.RenderingInfo As SftPrintPreviewRenderingInfo
VBDrawInfo = object.RenderingInfo As SftPrintPreviewRenderingInfo
C#.NETSftPrintPreviewRenderingInfo DrawInfo = object.RenderingInfo;
VC++struct SftPrintPreviewRenderingInfo DrawInfo = object->RenderingInfo;
struct SftPrintPreviewRenderingInfo DrawInfo = object->GetRenderingInfo();
CHRESULT object->get_RenderingInfo(struct SftPrintPreviewRenderingInfo* DrawInfo);

object

A SftPrintPreview object.

DrawInfo

Returns the information required for the page rendering event RenderContent.

Comments

The RenderingInfo property returns the information required for the page rendering event RenderContent.

This method is not supported for use with Visual Basic 6.0

Examples

VB.NET

        m_PrintFont = Nothing
    ElseIf e.function = SftPrintPreviewRenderContentConstants.renderSftPrintPreview_1Page Then
        PrintOnePage(e.visitedPageInfo, e.lastPage)
    End If
End Sub

Private Sub PrintOnePage(ByRef VisitedPageInfo As Object, ByRef LastPage As Integer)
    ' Print one page (can occur multiple times)
    ' RenderingInfo.CurrentPage has the absolute page # to print (0..n)
    ' RenderingInfo.PreviousVisitedPageInfo contains the value you returned in
    ' RenderingInfo.VisitedPageInfo when you finished printing the previous page
    ' This allows you to simply restart where you left off.
    ' The information you return in RenderingInfo.VisitedPageInfo is of type
    ' object, so it can be a simple Counter or even a complex object, with cached
    ' information.

C#

        m_PrintFont = null;
    else if (e.function == SftPrintPreviewRenderContentConstants.renderSftPrintPreview_1Page)
        PrintOnePage(ref e.visitedPageInfo, ref e.lastPage);
}

private void PrintOnePage(ref object visitedPageInfo, ref int lastPage)
{
    // Print one page (can occur multiple times)
    // RenderingInfo.CurrentPage has the absolute page # to print (0..n)
    // RenderingInfo.PreviousVisitedPageInfo contains the value you returned in
    // RenderingInfo.VisitedPageInfo when you finished printing the previous page
    // This allows you to simply restart where you left off.
    // The information you return in RenderingInfo.VisitedPageInfo is of type
    // object, so it can be a simple counter or even a complex object, with cached
    // information.

C++

        PrintOnePage(VisitedPageInfo, LastPage);
}

#define LINETEXT TEXT("Softel vdm, Inc. - www.WindowsControls.com")

void CSftPrintPreviewDlg::PrintOnePage(VARIANT FAR* VisitedPageInfo, long FAR* LastPage)
{
    // Print one page (can occur multiple times)
    // RenderingInfo.CurrentPage has the absolute page # to print (0..n)
    // RenderingInfo.PreviousVisitedPageInfo contains the value you returned in
    // RenderingInfo.VisitedPageInfo when you finished printing the previous page
    // This allows you to simply restart where you left off.
    // The information you return in RenderingInfo.VisitedPageInfo is of type
    // object, so it can be a simple counter or even a complex object, with cached
    // information.

See Also SftPrintPreview Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.