Re: MS-Sample Code is NOT working???



Thank you very much Chris, I will look into it and see if I can reach a
solution...I'll post my findings back if interested.
Again thank you.


"Chris Mills" wrote:

> I don't use Papersize (or anything much that far down). I'd just suggest the
> most likely problem is data mis-alignment. Before you SET papersize, alter the
> papersize using Printer Setup and make sure you can READ sensible values.
>
> (dmPaperSize As Integer) looks right because "INTEGER" is still defined as
> 16-bit. Nevertheless I'd cautiously check Access data types for their precise
> byte-length, for all PrtDevmode fields which are operating system fields.
>
> (If you read sensible data, it might point to the fault being in how you
> reconstruct the PrtDevMode structure.)
>
> Chris
>
> "RB" <RB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:0F9A5867-0476-468B-9439-ECF6671404E6@xxxxxxxxxxxxxxxx
> > Chris,
> >
> > Thanks a lot; that did help but it seem there is still something is wrong.
> > If I change the "PaperSize" to be many of the standard envelops the report
> is
> > set to letter I'm not using custom size 256. Any idea?
> >
> >
> >
> >
> > "Chris Mills" wrote:
> >
> > > I use PrtDevMode etc, based loosely on the Help sample which I think is
> the
> > > same.
> > >
> > > I believe strDeviceName needs to be defined as x16 (not x32), because
> strings
> > > are now unicode not ascii. This also makes extracting the devicename
> > > byte-by-byte a little more complex.
> > >
> > > (The example may have a leftover error from Access 2.0)(which was both
> 16-bit
> > > and Ascii)
> > >
> > > Chris
> > >
> > > "RB" <RB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > > news:48B11507-89A1-44EA-A571-1553DE501C95@xxxxxxxxxxxxxxxx
> > > > Is anyone able to get the example of the prtDevMode to work at all? The
> > > > sample is at:
> > > >
> > > >
> > >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaac11/html/acproPrtDevMode_HV05187912.asp
> > > >
> > > > I created new MDB, Report and COpy+Paste the code Then step throw the
> code I
> > > > see that the user defined type "DM" is not being set with the proper
> > > > attribute???
> > > >
> > > >
> > >
> > >
> > >
>
>
>
.



Relevant Pages

  • Re: MS-Sample Code is NOT working???
    ... I don't use Papersize. ... Before you SET papersize, alter the ... for all PrtDevmode fields which are operating system fields. ... Chris ...
    (microsoft.public.access.devtoolkits)
  • Re: what does "serialization" mean?
    ... the pseudo-expert maintains pseudo-expertise by means of the ... ASCII refers to the 256 ... Chris Sonnack addressed a newbie with authority, ... The ignorance was on display because as a Visual Studio expert, ...
    (comp.programming)
  • Re: Keys.Period
    ... Chris wrote: ... Keys.OemPeriod is ascii value 190. ... numpad it's function depends on the state of the numlock key. ... C-Services Holland b.v. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Keys.Period
    ... Keys.OemPeriod is 190 from the main keyboard ... "Chris" wrote: ... > iwdu15 wrote: ... > Keys.OemPeriod is ascii value 190. ...
    (microsoft.public.dotnet.languages.vb)

Quantcast