Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13401 > unrolled thread
| Started by | Mark Clement <mjclement1000@gmail.com> |
|---|---|
| First post | 2021-08-02 01:48 -0700 |
| Last post | 2021-08-02 23:33 -0400 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Saving and Restoring a printer Mark Clement <mjclement1000@gmail.com> - 2021-08-02 01:48 -0700
Re: Saving and Restoring a printer dlzc <dlzc1@cox.net> - 2021-08-02 07:10 -0700
Re: Saving and Restoring a printer Jamal <nospam@example.com> - 2021-08-02 23:33 -0400
| From | Mark Clement <mjclement1000@gmail.com> |
|---|---|
| Date | 2021-08-02 01:48 -0700 |
| Subject | Saving and Restoring a printer |
| Message-ID | <37b0fab8-b52e-4e4e-aaf2-e96e75880f88n@googlegroups.com> |
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.
[toc] | [next] | [standalone]
| From | dlzc <dlzc1@cox.net> |
|---|---|
| Date | 2021-08-02 07:10 -0700 |
| Message-ID | <0ec67805-03c9-47b4-9f26-fb7f64790b54n@googlegroups.com> |
| In reply to | #13401 |
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
[toc] | [prev] | [next] | [standalone]
| From | Jamal <nospam@example.com> |
|---|---|
| Date | 2021-08-02 23:33 -0400 |
| Message-ID | <seaddp$1lrv$1@gioia.aioe.org> |
| In reply to | #13401 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web