Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The bug starts here.


devel / comp.lang.clipper.visual-objects / Saving and Restoring a printer

SubjectAuthor
* Saving and Restoring a printerMark Clement
+- Re: Saving and Restoring a printerdlzc
`- Re: Saving and Restoring a printerJamal

1
Saving and Restoring a printer

<37b0fab8-b52e-4e4e-aaf2-e96e75880f88n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=899&group=comp.lang.clipper.visual-objects#899

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a0c:df09:: with SMTP id g9mr15366790qvl.30.1627894113920; Mon, 02 Aug 2021 01:48:33 -0700 (PDT)
X-Received: by 2002:ad4:46e2:: with SMTP id h2mr15341096qvw.24.1627894113691; Mon, 02 Aug 2021 01:48:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Mon, 2 Aug 2021 01:48:33 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=213.162.122.146; posting-account=vFL5sQoAAABTjNqK1MTkI5BZbir8JGq0
NNTP-Posting-Host: 213.162.122.146
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <37b0fab8-b52e-4e4e-aaf2-e96e75880f88n@googlegroups.com>
Subject: Saving and Restoring a printer
From: mjclement1000@gmail.com (Mark Clement)
Injection-Date: Mon, 02 Aug 2021 08:48:33 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 8
 by: Mark Clement - Mon, 2 Aug 2021 08:48 UTC

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.

Re: Saving and Restoring a printer

<0ec67805-03c9-47b4-9f26-fb7f64790b54n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=900&group=comp.lang.clipper.visual-objects#900

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:1193:: with SMTP id b19mr15451761qkk.439.1627913436459;
Mon, 02 Aug 2021 07:10:36 -0700 (PDT)
X-Received: by 2002:ad4:5227:: with SMTP id r7mr16587013qvq.41.1627913436260;
Mon, 02 Aug 2021 07:10:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Mon, 2 Aug 2021 07:10:36 -0700 (PDT)
In-Reply-To: <37b0fab8-b52e-4e4e-aaf2-e96e75880f88n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <37b0fab8-b52e-4e4e-aaf2-e96e75880f88n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0ec67805-03c9-47b4-9f26-fb7f64790b54n@googlegroups.com>
Subject: Re: Saving and Restoring a printer
From: dlzc1@cox.net (dlzc)
Injection-Date: Mon, 02 Aug 2021 14:10:36 +0000
Content-Type: text/plain; charset="UTF-8"
 by: dlzc - Mon, 2 Aug 2021 14:10 UTC

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

Re: Saving and Restoring a printer

<seaddp$1lrv$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=901&group=comp.lang.clipper.visual-objects#901

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!news.niel.me!aioe.org!usMzckGswq/a27BPojtwGg.user.46.165.242.75.POSTED!not-for-mail
From: nospam@example.com (Jamal)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Saving and Restoring a printer
Date: Mon, 2 Aug 2021 23:33:13 -0400
Organization: Aioe.org NNTP Server
Message-ID: <seaddp$1lrv$1@gioia.aioe.org>
References: <37b0fab8-b52e-4e4e-aaf2-e96e75880f88n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="55167"; posting-host="usMzckGswq/a27BPojtwGg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Jamal - Tue, 3 Aug 2021 03:33 UTC

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

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor