Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12978

Re: DocumentProperties and DevMode structure

From "Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: DocumentProperties and DevMode structure
Date 2020-05-06 21:27 +0200
Message-ID <hhghefF6uugU1@mid.individual.net> (permalink)
References <ba949ab5-b2cb-4947-b998-f93ba14f176c@googlegroups.com>

Show all headers | View raw


Hi Krystian,

Nice to hear from you again.
My provider does not allow to post binaries, see your mail there is a 
AEF....
Regards
Urs


"Krystian" <softb@softb.pl> schrieb im Newsbeitrag
news:ba949ab5-b2cb-4947-b998-f93ba14f176c@googlegroups.com...
> Hi,
>
> How may i modify an element of the devmode structure :
>
> 1 - determine the size of structure
> ile:=DocumentProperties(SELF:hWnd, hptr, PSZ(SELF:drukarka:Device), NULL,
> NULL, 0)
>
> ptrmem := MemAlloc(ile)
>
> 2 - copy actual printer parameters to the allocated memory
>
> DocumentProperties(SELF:hWnd, hptr, PSZ(SELF:drukarka:Device), ptrmem,
> NULL, DM_OUT_BUFFER)
>
> 3 - i would like to switch to duplex printing - but i do not know, how to
> update the structure
>
> ? ptrmem ? dmDuplex := DMDUP_VERTICAL
>
> DocumentProperties(SELF:hWnd, hptr, PSZ(SELF:drukarka:Device), ptrmem,
> ptrmem, _OR(DM_IN_BUFFER, DM_OUT_BUFFER))
>
> i will be grateful for any help
> Krystian

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

DocumentProperties and DevMode structure Krystian <softb@softb.pl> - 2020-05-04 06:56 -0700
  Re: DocumentProperties and DevMode structure Gianluca72 <gianluca.pinoli@proximacentauri.it> - 2020-05-04 09:18 -0700
  Re: DocumentProperties and DevMode structure Krystian <softb@softb.pl> - 2020-05-05 01:01 -0700
  Re: DocumentProperties and DevMode structure "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-05-06 21:27 +0200

csiph-web