Re: How to control Report Preview properties at runtime
- From: "Dirk Goldgar" <dg@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 10 Jun 2005 10:32:56 -0400
"Arvin Rex" <arvinrexsweeney@xxxxxxxxxxxxxxxx> wrote in message
news:uNJd0UcbFHA.2696@xxxxxxxxxxxxxxxxxxxx
> Dirk Goldgar wrote:
>
>> "Arvin Rex" <arvinrexsweeney@xxxxxxxxxxxxxxxx> wrote in message
>> news:uIK3IybbFHA.2288@xxxxxxxxxxxxxxxxxxxx
>>
>>> THANKS! Both do the trick. The <reports> approach is curious: it
>>> seems to use a read-only enumerator that can modify a property.
>>> Novice that I am, I thought this was not possible.
>>
>>
>> I'm not sure what you're referring to -- I see nothing particularly
>> surprising about the code. If you'll explain what you thought was
>> impossible, I may be able to explain it.
>>
> This was my thinking:
>
> re: Reports(ReportName).zoomcontrol = [variant}
>
> Help documentation says Reports is a read-only property pointing to a
> property(ZoomControl) of the report named: [ReportName]
>
> "read-only" implies, to me, that one could read the value of
> .zoomcontrol but not change it.
The Application.Reports property is read-only, in that you can't assign
any value to it. However, Reports(ReportName) is a reference to an item
(a Report object) in the collection that the Reports property returns.
That item is not itself read-only, and in turn the various properties of
that Report object are not inherenty read-only. Some may be read-only,
some may not, and some may be read-only in some views and not in others,
as (usually) documented in the help file.
ZoomControl, though undocumented, is a read/write property of the Report
object, when the object is in Print Preview mode.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
.
- Follow-Ups:
- Re: How to control Report Preview properties at runtime
- From: Arvin Rex
- Re: How to control Report Preview properties at runtime
- References:
- How to control Report Preview properties at runtime
- From: Arvin Rex
- Re: How to control Report Preview properties at runtime
- From: Dirk Goldgar
- Re: How to control Report Preview properties at runtime
- From: Arvin Rex
- Re: How to control Report Preview properties at runtime
- From: Dirk Goldgar
- Re: How to control Report Preview properties at runtime
- From: Arvin Rex
- How to control Report Preview properties at runtime
- Prev by Date: RE: How to change ENABLE property of subform by button on Main for
- Next by Date: Disable fields on Submit
- Previous by thread: Re: How to control Report Preview properties at runtime
- Next by thread: Re: How to control Report Preview properties at runtime
- Index(es):