• Saving and Restoring a printer

    From Mark Clement@21:1/5 to All on Mon Aug 2 01:48:33 2021
    If any of the properties of a printer are changed they are kept until the program is closed.

    What i wish to do is store the printer properties

    Allow the user to change then

    Restore the printer properties

    I use Report Pro 2.14 and VO28. If anyone has a better suggestion to keep the printer properties please let me know.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dlzc@21:1/5 to Mark Clement on Mon Aug 2 07:10:36 2021
    On Monday, August 2, 2021 at 1:48:34 AM UTC-7, Mark Clement wrote:
    If any of the properties of a printer are changed they are kept until the program is closed.

    What i wish to do is store the printer properties

    Allow the user to change then

    Restore the printer properties

    I use Report Pro 2.14 and VO28. If anyone has a better suggestion to keep the printer properties please let me know.

    Win32 has an interface, to access / change the printer device properties via the Windows interface:
    https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-printer

    Could you read it, store it, let the user go to town, then reset it? I don't know how VO "wraps" this interface.

    David A. Smith

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jamal@21:1/5 to Mark Clement on Mon Aug 2 23:33:13 2021
    On 8/2/2021 4:48 AM, Mark Clement wrote:
    If any of the properties of a printer are changed they are kept until the program is closed.

    What i wish to do is store the printer properties

    Allow the user to change then

    Restore the printer properties

    I use Report Pro 2.14 and VO28. If anyone has a better suggestion to keep the printer properties please let me know.


    Look at the The PtrDevice (Printer Device) class in RP developer's help
    file. It may help you figure it out.

    It has the following:

    Properties (some are ACCESS, some are ACCESS/ASSIGN):

    AllPages
    BottomMargin
    CollateCopies
    Color
    Copies
    CurrentPageNumber
    DefaultPaperSource
    DeviceContext
    DeviceModeFields
    DisablePrint2File
    Duplex
    ExportObject
    FromPage
    HidePrint2File
    HPixelsPerInch
    InPreview
    InPrint
    IsValid
    Landscape
    LeftMargin
    LogPaperLength
    LogPaperWidth
    LogPixelsPerInchX
    LogPixelsPerInchY
    LogPrintAreaLength
    LogPrintAreaWidth
    MaxPage
    MinPage
    NoPageNums
    NoSelection
    PageNums
    PaperLength
    PaperLengthInches
    PaperSize
    PaperWidth
    PaperWidthInches
    Print2File
    PrintDlgFlags
    PrinterDeviceContext
    PrinterDriver
    PrinterName
    PrinterPort
    PrintQuality
    PrintWindow
    PromptForFile
    PromptForPrintDlg
    Quit
    RightMargin
    Selection
    ToPage
    TopMargin
    VPixelsPerInch
    XPrinterRes
    YPrinterRes

    Methods:

    CreatePrinterDC
    CreatePrinterIC
    GetPaperBins
    GetPaperSizes
    PrintPreview
    QuitPreview
    SetPrinterByName

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)