Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by andre65

  1. andre65

    Word: updating Fields

    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é
  2. andre65

    Word: updating Fields

    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...
  3. andre65

    Word: updating Fields

    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...
  4. andre65

    Word: printPreview

    I use VFP70. BindEvent is for VFP80, isn't it? André
  5. andre65

    Word: updating Fields

    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...
  6. andre65

    Word: printPreview

    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 *--...
  7. andre65

    Word: updating Fields

    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...
  8. andre65

    Word automation for Invoices

    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é
  9. andre65

    Word automation for Invoices

    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...
  10. andre65

    Word automation for Invoices

    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...
  11. andre65

    Word automation for Invoices

    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...
  12. andre65

    Application crashes after showing a report preview Win98

    Great news, I did the changes like FAQ184-2265. Now my app does not crashes anymore at my customer. Thank you all! Gr, André
  13. andre65

    Application crashes after showing a report preview Win98

    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...
  14. andre65

    Application crashes after showing a report preview Win98

    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é
  15. andre65

    Application crashes after showing a report preview Win98

    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...

Part and Inventory Search

Back
Top