Re: Word Automation - constants
- From: "Dan Freeman" <spam@xxxxxxxxxxxxx>
- Date: Fri, 30 Dec 2005 13:19:09 -0800
That's the way to go. #INCLUDEing the entire batch will bring the form
designer to a crawl.
But note that #DEFINEs are resolved at compile-time. Your users would never
see the difference, but you sure would in the form designer.
Dan
Dan Tallent wrote:
> Hi Cindy,
>
> I noticed there were quite a few when I was viewing the list of
> constants in the Object browser. I figure I will manually define
> them when I have a specific use for them in that class.
>
> Thanks,
> Dan
>
>
>
> "Cindy Winegarden" <cindy_winegarden@xxxxxxx> wrote in message
> news:uHsQolXDGHA.3528@xxxxxxxxxxxxxxxxxxxxxxx
>> Hi Dan,
>>
>> When you drag the list to a code window (as Michel suggested) you
>> get every constant Word has. You might, however, use only a small
>> number of these constants. Including only the constants you need in
>> your programs is more efficient than using the whole group.
>>
>> --
>> Cindy Winegarden MSCD, Microsoft Visual FoxPro MVP
>> cindy_winegarden@xxxxxxx www.cindywinegarden.com
>>
>>
>> "Dan Tallent" <spam@xxxxxxxxxxxxx> wrote in message
>> news:eEUUGHXDGHA.3920@xxxxxxxxxxxxxxxxxxxxxxx
>>> Well.. you learn something new every day. Thx for the heads up
>>> guys. I didn't even think to try the object browser.
>>>
>>> Dan
>>>
>>>
>>>
>>> "Dan Tallent" <spam@xxxxxxxxxxxxx> wrote in message
>>> news:OrzjE6UDGHA.3984@xxxxxxxxxxxxxxxxxxxxxxx
>>>> I have been working on a project that will auto generate letters
>>>> in Word from my app.
>>>>
>>>> The main problem I was having was that all of the examples use
>>>> constants like wdGoToPage or wdGoToAbsolute. This proved to be a
>>>> problem because VFP does not know these values. I found this
>>>> link and thought it might help some people out there.
>>>>
>>>>
>>>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbawd11/html/wohowConstants_HV01049731.asp
>>>>
>>>>
>>
>>> ------------------------------------------------------------------------
-
>>> - --
>>>> ---------
>>>> Hope this helps
>>>> Dan Tallent
.
- References:
- Word Automation - constants
- From: Dan Tallent
- Re: Word Automation - constants
- From: Dan Tallent
- Re: Word Automation - constants
- From: Cindy Winegarden
- Re: Word Automation - constants
- From: Dan Tallent
- Word Automation - constants
- Prev by Date: Re: Word Automation - constants
- Next by Date: Re: Switching to .NET from FoxPro
- Previous by thread: Re: Word Automation - constants
- Next by thread: Re: Word Automation - constants
- Index(es):
Relevant Pages
|