Stewart,
As I understand, you now have the same problem as I have?
I use CREATEOBJECT not GETOBJECT, but that's more or less the same.
The user can create it's own template, but that wil be one page. My app determines if there are more pages neccessary.
André
Stewart,
The VBAWRD helpfile says that WholeStory is a method.
I tried your code suggestion.
Still the same result. Second page displays [page 2 of 1].
In your example, do you have a hard pagebreak. I use in code:
this.oWord.selection.insertBreak(wdPageBreak)
Maybe this blocks the update...
Stewart,
It almost works ...
In a document where 2 pages are created, only the first page shows [1 of 2 pages], the second page shows [2 of 1 pages].
This is the code I have tried:
this.oDocNew.activate
this.oWord.selection.wholeStory
this.oWord.selection.fields.update
and...
Stewart,
The [Page X of Y] autotext field is eventually the same as using [Page] and [NumPages] fields. So my questions stays the same.
By the way: I want the user have the flexibility to put Fields anywhere in the document, not only in the footer. The document is created by the user itself...
In my app I want to give the user the possibility to directly print a Word document or to preview a Word document.
I have created a class which supports both requests. I use the following code to create the class
lparameters tnInvoiceNr, tnOutput
*-- tnInvoiceNr = invoice number to print
*--...
I have a Word document containing the fields [Page] and [NumPages] to create [X of Y pages]. During automation I create one or more pages, so at the end I want to update the fields.
Updating field [Page] works fine.
Updating field [NumPages] does not work.
I have the following code:
*-- First...
Thank you for all your suggestions.
I'm working now on a Microft Word automation solution. I've been reading the VBAWRD.CHM visual basic word help and done some experimenting.
Now I think I have a pretty nice solution for creating an invoice template in word.
André
I prefer using Word from enduser's point of view. So I created an invoice template in Word with a table for the invoice lines. I created a table with 2 rows, the 1st with 5 columns, 2nd with 1 column (for optional comments). Now when there are more than 1 invoice line, i want to copy the 2 rows...
No I did not, and you are right, it might be easier to automate. What is the best way using Excell to find specific merge cells, a find and replace method (how to do that)? or predefine XY cells at user application level? What is an easy way to duplicate rows (for repeating invoice lines). What...
Hello all,
In my current application I use a VFP report for printing invoices. This is a fixed report, the user cannot modify the layout. Now you know customers, they all have specific demands for invoice layout. So I thought creating a Word template would be nice. I know how to automate from...
Mike,
On my system I see for example the versions
MSVCRT.DLL
MSVCRT20.DLL
MSVCRT40.DLL
so I can use MSVCRT.DLL
But how do I know the version installed on my client's PC? If I do the coding in my app for MSVCRT.DLL and my customer has only MSVCRT10.DLL my app will raise an error ... or should I...
Mike,
What does MSVCRT mean?
How can I determine if I should use MSVCRT10 or MSVCRT20?
In the FAQ you say BEFORE and AFTER, but I only see in the example BEFORE? Should the example be
=_fpreset()
DO REPORT ....
=_fpreset()
Thanks in advance for your reply.
André
Hi all,
My application is created with VFP70-SP1 and works fine on Win2K en WinXP platform. Now when installing this app on Window 98 it crashes each time when a report is printed or previewed. Sometimes it does not immediatly crashes, but when activating another function via the menu, it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.