Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreviewInfo

Contains information about the control and its environment (used with Info property and GetInfo method)

Syntax

VB.NETStructure SftPrintPreviewInfo
Dim DPixelsY As IntegerPixels per inch horizontally (screen)
Dim OffsetX As IntegerPixels per inch vertically (screen)
Dim OffsetY As IntegerDesired horizontal offset (in pixels) when viewing zoomed page
Dim PaperWidthPix As IntegerDesired vertical offset (in pixels) when viewing zoomed page
Dim PaperWidth As SingleHorizontal printer page size in pixels
Dim PaperHeightPix As IntegerVertical printer page size in pixels
Dim PaperHeight As SingleVertical printer page size in inches
Dim PPixelsX As IntegerPixels per inch horizontally (printer)
Dim PPixelsY As IntegerPixels per inch vertically (printer)
Dim PrintableHorizontalOffsetPix As IntegerHorizontal offset to printable area on page in pixels
Dim PrintableHorizontalOffset As SingleHorizontal offset to printable area on page in inches
Dim PrintableVerticalOffsetPix As IntegerVertical offset to printable area on page in pixels
Dim PrintableVerticalOffset As SingleVertical offset to printable area on page in inches
Dim PrintableWidthPix As IntegerHorizontal size of printable area in pixels
Dim PrintableWidth As SingleHorizontal size of printable area in inches
Dim PrintableHeightPix As IntegerVertical size of printable area in pixels
Dim PrintableHeight As SingleVertical size of printable area in inches
Dim MaxPages As LongPages available for preview (same as TotalPages property)
Dim VisitedLastPage As LongHighest page number currently visited (same as VisitedPages property)
Dim ErrorValue As IntegerError value - Internal Use Only
Dim PrintDlgLastError As LongError value - Internal Use Only
End Structure
VBType SftPrintPreviewInfo
DPixelsY As IntegerPixels per inch horizontally (screen)
OffsetX As IntegerPixels per inch vertically (screen)
OffsetY As IntegerDesired horizontal offset (in pixels) when viewing zoomed page
PaperWidthPix As IntegerDesired vertical offset (in pixels) when viewing zoomed page
PaperWidth As SingleHorizontal printer page size in pixels
PaperHeightPix As IntegerVertical printer page size in pixels
PaperHeight As SingleVertical printer page size in inches
PPixelsX As IntegerPixels per inch horizontally (printer)
PPixelsY As IntegerPixels per inch vertically (printer)
PrintableHorizontalOffsetPix As IntegerHorizontal offset to printable area on page in pixels
PrintableHorizontalOffset As SingleHorizontal offset to printable area on page in inches
PrintableVerticalOffsetPix As IntegerVertical offset to printable area on page in pixels
PrintableVerticalOffset As SingleVertical offset to printable area on page in inches
PrintableWidthPix As IntegerHorizontal size of printable area in pixels
PrintableWidth As SingleHorizontal size of printable area in inches
PrintableHeightPix As IntegerVertical size of printable area in pixels
PrintableHeight As SingleVertical size of printable area in inches
MaxPages As LongPages available for preview (same as TotalPages property)
VisitedLastPage As LongHighest page number currently visited (same as VisitedPages property)
ErrorValue As IntegerError value - Internal Use Only
PrintDlgLastError As LongError value - Internal Use Only
End Structure
C#.NETstruct SftPrintPreviewInfo {
int DPixelsY;Pixels per inch horizontally (screen)
int OffsetX;Pixels per inch vertically (screen)
int OffsetY;Desired horizontal offset (in pixels) when viewing zoomed page
int PaperWidthPix;Desired vertical offset (in pixels) when viewing zoomed page
float PaperWidth;Horizontal printer page size in pixels
int PaperHeightPix;Vertical printer page size in pixels
float PaperHeight;Vertical printer page size in inches
int PPixelsX;Pixels per inch horizontally (printer)
int PPixelsY;Pixels per inch vertically (printer)
int PrintableHorizontalOffsetPix;Horizontal offset to printable area on page in pixels
float PrintableHorizontalOffset;Horizontal offset to printable area on page in inches
int PrintableVerticalOffsetPix;Vertical offset to printable area on page in pixels
float PrintableVerticalOffset;Vertical offset to printable area on page in inches
int PrintableWidthPix;Horizontal size of printable area in pixels
float PrintableWidth;Horizontal size of printable area in inches
int PrintableHeightPix;Vertical size of printable area in pixels
float PrintableHeight;Vertical size of printable area in inches
int MaxPages;Pages available for preview (same as TotalPages property)
int VisitedLastPage;Highest page number currently visited (same as VisitedPages property)
int ErrorValue;Error value - Internal Use Only
int PrintDlgLastError;Error value - Internal Use Only
};
C, C++struct SftPrintPreviewInfo {
int DPixelsY;Pixels per inch horizontally (screen)
int OffsetX;Pixels per inch vertically (screen)
int OffsetY;Desired horizontal offset (in pixels) when viewing zoomed page
int PaperWidthPix;Desired vertical offset (in pixels) when viewing zoomed page
float PaperWidth;Horizontal printer page size in pixels
int PaperHeightPix;Vertical printer page size in pixels
float PaperHeight;Vertical printer page size in inches
int PPixelsX;Pixels per inch horizontally (printer)
int PPixelsY;Pixels per inch vertically (printer)
int PrintableHorizontalOffsetPix;Horizontal offset to printable area on page in pixels
float PrintableHorizontalOffset;Horizontal offset to printable area on page in inches
int PrintableVerticalOffsetPix;Vertical offset to printable area on page in pixels
float PrintableVerticalOffset;Vertical offset to printable area on page in inches
int PrintableWidthPix;Horizontal size of printable area in pixels
float PrintableWidth;Horizontal size of printable area in inches
int PrintableHeightPix;Vertical size of printable area in pixels
float PrintableHeight;Vertical size of printable area in inches
long MaxPages;Pages available for preview (same as TotalPages property)
long VisitedLastPage;Highest page number currently visited (same as VisitedPages property)
int ErrorValue;Error value - Internal Use Only
long PrintDlgLastError;Error value - Internal Use Only
};

Members

DPixelsX

Defines the number of pixels per logical inch along the screen width.

DPixelsY

Defines the number of pixels per logical inch along the screen height.

OffsetX

Defines the desired horizontal offset when viewing a zoomed page (in pixels).

OffsetY

Defines the desired vertical offset when viewing a zoomed page (in pixels).

PaperWidthPix

Defines the width of the physical page (in pixels). E.g., 8.5 x 11 inch paper on a 600 dpi printer has a physical width of 5100 pixels. The physical page is almost always greater than the printable area of the page.

PaperWidth

Defines the width of the physical page (in inches).

PaperHeightPix

Defines the height of the physical page (in pixels). E.g., 8.5 x 11 inch paper on a 600 dpi printer has a physical height of 6600 pixels. The physical page is almost always greater than the printable area of the page.

PaperHeight

Defines the height of the physical page (in inches).

PPixelsX

Defines the number of pixels per logical inch along the (printed) page width.

PPixelsY

Defines the number of pixels per logical inch along the (printed) page height.

PrintableHorizontalOffsetPix

Defines the distance from the left edge of the physical page to the left edge of the printable area (in pixels).

PrintableHorizontalOffset

Defines the distance from the left edge of the physical page to the left edge of the printable area (in inches).

PrintableVerticalOffsetPix

Defines the distance from the top edge of the physical page to the top edge of the printable area (in pixels).

PrintableVerticalOffset

Defines the distance from the top edge of the physical page to the top edge of the printable area (in inches).

PrintableWidthPix

Defines the width of the printable area on the page (in pixels).

PrintableWidth

Defines the width of the printable area on the page (in inches).

PrintableHeightPix

Defines the height of the printable area on the page (in pixels).

PrintableHeight

Defines the height of the printable area on the page (in inches).

MaxPages

Defines the total number of pages available for preview and printing (same as TotalPages property).

VisitedLastPage

Defines the currently last known page (same as VisitedPages property). Page numbers are zero-based.

ErrorValue

Error value - Internal Use Only.

PrintDlgLastError

Error value - Internal Use Only.

See Also Object Hierarchy


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