Re: MS-Sample Code is NOT working???
- From: "RB" <RB@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 4 Aug 2005 13:23:01 -0700
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???
> > > >
> > > >
> > >
> > >
> > >
>
>
>
.
- References:
- MS-Sample Code is NOT working???
- From: RB
- Re: MS-Sample Code is NOT working???
- From: Chris Mills
- Re: MS-Sample Code is NOT working???
- From: RB
- Re: MS-Sample Code is NOT working???
- From: Chris Mills
- MS-Sample Code is NOT working???
- Prev by Date: Re: Access Run-Time use with v. 2002
- Next by Date: Re: Access Run-Time use with v. 2002
- Previous by thread: Re: MS-Sample Code is NOT working???
- Next by thread: Access Run-Time use with v. 2002
- Index(es):
Relevant Pages
|