Help Center
Help CenterAfxNova

Printing

110 entries across 2 topics.

Topics

All entries

CPrint 50

AttachPrinterAttaches the specified printer to the class.ChoosePrinterDisplays the printer dialog to select a printer.CollateReturns true if the printer supports collating mode; False, otherwise.CollateModeGets/sets the collate setting value.ColorReturns true if the printer supports color mode; False, otherwise.ColorModeSwitches between color and monochrome on color printers.ConstructorCopiesGets/sets the number of copies to print if the device supports multiple-page copies.DuplexChecks if the printer supports duplex printing.DuplexModeGets/sets the current duplex mode.EnumPrinterNamesReturns a list with the available printers, print servers, domains, or print providers.GetDCReturns the handle of the device context of the attached printer.GetDefaultPrinterReturns the name of the default printer.GetDefaultPrinterDriverReturns the name of the default printer driver.GetDefaultPrinterPortReturns the name of the default printer port.GetDocumentPropertiesGetHorizontalResolutionReturns the width, in pixels, of the printable area of the page.GetHorizontalUnitsReturns the width, in world units, of the printable area of the page.GetMarginsPixelsRetrieves the margins (the non-printable area) of the printer page, in pixels.GetMarginsUnitsRetrieves the margins (the non-printable area) of the printer page, in world units.GetPaperNamesReturns a list of supported paper names.GetPPIXReturns the number of pixels per inch of the page (horizontal resolution).GetPPIYReturns the number of pixels per inch of the page (vertical resolution).GetPrinterNameReturns the name of the attached printer.GetTrayNamesGetVerticalResolutionReturns the height, in pixels, of the printable area of the page.GetVerticalUnitsReturns the height, in world units, of the printable area of the page.OrientationGets/sets the printer orientation.PageSetupDisplays a Page Setup dialog box that enables the user to specify the attributes of a printed page.PaperLengthGets/sets the paper length in units of 1/10 of a millimeter.PaperSizeGets/sets the printer paper size.PaperWidthGets/sets the paper width in units of 1/10 of a millimeter.PixelsToPointsXConverts pixels to point size (1/72 of an inch) (horizontal resolution).PixelsToPointsYConverts pixels to point size (1/72 of an inch) (vertical resolution).PixelsToUnitsXConverts pixels to world units. (horizontal resolution).PixelsToUnitsYConverts pixels to world units. (vertical resolution).PointsToPixelsXConverts a point size (1/72 of an inch) to pixels (horizontal resolution).PointsToPixelsYConverts a point size (1/72 of an inch) to pixels (vertical resolution).PrintBitmapPrints a Windows bitmap in the attached printer.PrintBitmapToFilePrints a Windows bitmap in the specified file.PrintRtfQualityGets/sets the printer print quality mode.ScaleGets/sets the factor by which the printed output is to be scaled.SetDefaultPrinterSets the default printer.SetDefaultPrinterPortSetPaperSizeSets the paper length and width in units of 1/10 of a millimeter.SetPrinterInfoTraySpecifies the paper source.UnitsToPixelsXConverts world units to pixels (horizontal resolution).UnitsToPixelsYConverts world units to pixels (vertical resolution).

Procedures 60

AfxEnumLocalPrinterPortsReturns a list with port names of the locally installed printers.AfxEnumPrinterNamesReturns a list with the available printers, print servers, domains, or print providers.AfxEnumPrinterPortsReturns a list with the ports that available for printing on a specified server.AfxGetDefaultPrinterRetrieves the name of the default printer.AfxGetDefaultPrinterDriverRetrieves the name of the default printer driver.AfxGetDefaultPrinterPortRetrieves the name of the default printer port.AfxGetDocumentPropertiesAfxGetPrinterCollateIf the printer supports collating, the return value is TRUE; otherwise, the return value is FALSE.AfxGetPrinterCollateStatusReturns the printer collate status.AfxGetPrinterColorModeIf the printer supports color printing, the return value is TRUE; otherwise, the return value is FALSE.AfxGetPrinterCopiesReturns the number of copies printed if the device supports multiple-page copies.AfxGetPrinterDCReturns the handle of the default printer device context.AfxGetPrinterDriverVersionReturns the version number of the Windows-based printer driver.AfxGetPrinterDuplexIf the printer supports duplex printing, the return value is TRUE; otherwise, the return value is FALSE.AfxGetPrinterDuplexModeIf the printer supports duplex printing, returns the current duplex mode.AfxGetPrinterFromPortReturns the printer name for a given port name.AfxGetPrinterHorizontalResolutionReturns the width, in pixels, of the printable area of the page.AfxGetPrinterMaxCopiesReturns the maximum number of copies the device can print.AfxGetPrinterMaxPaperHeightReturns the maximum paper height in tenths of a millimeter.AfxGetPrinterMaxPaperWidthReturns the maximum paper width in tenths of a millimeter.AfxGetPrinterMediaReadyRetrieves the names of the paper forms that are currently available for use.AfxGetPrinterMinPaperHeightReturns the minimum paper height in tenths of a millimeter.AfxGetPrinterMinPaperWidthReturns the minimum paper width in tenths of a millimeter.AfxGetPrinterOrientationReturns the printer orientation.AfxGetPrinterOrientationDegreesReturns the relationship between portrait and landscape orientations for a device, in terms of the number of degrees that portrait orientation is rotated counterclockwise to produce landscape orientation.AfxGetPrinterPaperLengthReturns the paper length.AfxGetPrinterPaperNamesReturns a list of supported paper names (for example, Letter or Legal).AfxGetPrinterPaperSizeAfxGetPrinterPaperSizesReturns a list of each supported paper sizes, in tenths of a millimeter.AfxGetPrinterPaperWidthReturns the paper width.AfxGetPrinterPhysicalHeightReturns the height of the physical page, in device units.AfxGetPrinterPhysicalOffsetXReturns the distance from the left edge of the physical page to the left edge of the printable area, in device units.AfxGetPrinterPhysicalOffsetYReturns the distance from the top edge of the physical page to the top edge of the printable area, in device units.AfxGetPrinterPhysicalWidthReturns the width of the physical page, in device units.AfxGetPrinterPortReturns the port name for a given printer name.AfxGetPrinterPPIXRetrieves the number of pixels per inch of the specified host printer page (horizontal resolution).AfxGetPrinterPPIYRetrieves the number of pixels per inch of the specified host printer page (vertical resolution).AfxGetPrinterQualityReturns the printer print quality mode.AfxGetPrinterRateReturns the printer's print rate.AfxGetPrinterRatePPMReturns the printer's print rate, in pages per minute.AfxGetPrinterRateUnitReturns the printer's rate unit.AfxGetPrinterScaleReturns the factor by which the printed output is to be scaled.AfxGetPrinterScalingFactorXReturns the scaling factor for the x-axis of the printer.AfxGetPrinterScalingFactorYReturns the scaling factor for the y-axis of the printer.AfxGetPrinterTrayReturns the paper sourceAfxGetPrinterTrayNamesReturns a list with the names of the printer's paper bins.AfxGetPrinterTrueTypeRetrieves the abilities of the driver to use TrueType fonts.AfxGetPrinterVerticalResolutionReturns the Height, in pixels, of the printable area of the page.AfxOpenPrintersFolderOpens an instance of Explorer with the Printers and Faxes folder selected.AfxPrinterDialogDisplays the printer dialog. Returns TRUE or FALSE.AfxSetPrinterCollateStatusSpecifies whether collation should be used when printing multiple copies.AfxSetPrinterColorModeSwitches between color and monochrome on color printers.AfxSetPrinterCopiesSelects the number of copies printed if the device supports multiple-page copies.AfxSetPrinterDuplexModeSets the printer duplex mode.AfxSetPrinterInfoAfxSetPrinterOrientationSets the printer orientation.AfxSetPrinterPaperSizeSets the printer paper size.AfxSetPrinterQualitySpecifies the print quality mode.AfxSetPrinterScaleSpecifies the factor by which the printed output is to be scaled.AfxSetPrinterTraySets the paper source.