Re: Word Automation - constants

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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


.



Relevant Pages

  • Re: remote view - MySQL add records?
    ... Or use the view designer and let *it* do all that work for you. ... Thanks Dan but I tried that. ... MySQL DB using VFP 9.0, append a blank row, write to a field and send the ... Steps I do not understand at all: write the changes back through ODBC. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Strange View Problem
    ... so anyone approaching this needs to know what environment you're ... Dan ... Cory Bonallo wrote: ... If I open it in the view designer, ...
    (microsoft.public.fox.programmer.exchange)
  • Re: is there a fix for this?!
    ... fact that you couldn't stop the designer from reformatting your HTML to some ... If you made a change in the HTML, ... Dan. ... the fix is called Visual Studio 2005 and it will be released next ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Super Sportster kit discontinued
    ... Dan ... KE6ERB ... "I've heard the screams of the vegetables..." ... > Was G.P.the original designer of the Supersportster or was it someone ...
    (rec.models.rc.air)
  • Re: Word Automation - constants
    ... > Hi Dan, ... > constant Word has. ... >> didn't even think to try the object browser. ... >>> like wdGoToPage or wdGoToAbsolute. ...
    (microsoft.public.fox.programmer.exchange)