Alpha Video Training
Results 1 to 6 of 6

Thread: Merge AND print a Word doc from within A5

  1. #1
    Member
    Real Name
    Jose Manuel Atienza
    Join Date
    Mar 2006
    Location
    Philippines
    Posts
    278

    Default Merge AND print a Word doc from within A5

    Hi all.

    Is it possible to merge a record into a Word document and print that document from the same Xbasic script?
    Jim

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: Merge AND print a Word doc from within A5

    A5_WORD_MERGE() is available in xbasic. SYS_PRINT() is available in xbasic. Can't think of why both couldn't be used in a single script.

  3. #3
    Member
    Real Name
    Jose Manuel Atienza
    Join Date
    Mar 2006
    Location
    Philippines
    Posts
    278

    Default Re: Merge AND print a Word doc from within A5

    Hello, Stan!

    Thanks for your reply and for telling me about the sys_print() function. I wasn't aware of it before. But I'm not sure that's what I need at the moment. As I understand it sys_print() requires the path to a saved file as an argument. What I had in mind was printing the merged Word document without saving it at all. I don't need to save it because all I want to do is print it. The following is what I want to do from a script:

    1. Merge record to Word document
    2. Print the resulting document (usually titled "Form Letter 1").
    3. Close Word without saving.

    Looking forward to your comments.

    Thanks again!
    Last edited by jmatienza; 12-28-2008 at 09:50 PM.
    Jim

  4. #4
    "Certified" Alphaholic
    Real Name
    Mike Christensen
    Join Date
    Nov 2005
    Location
    Michigan U.P.
    Posts
    5,937

    Default Re: Merge AND print a Word doc from within A5

    Jim,
    If there is not a way, then simply save it, print it, and then remove it with FILE.REMOVE()
    http://support.alphasoftware.com/alp...E.REMOVE().HTM

    Or always use the same name and overwrite it each time....
    Mike
    __________________________________________
    It is only when we forget all our learning that we begin to know.
    It's not what you look at that matters, it's what you see.
    Henry David Thoreau
    __________________________________________




  5. #5
    "Certified" Alphaholic
    Real Name
    Tom Cone Jr
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    23,311

    Default Re: Merge AND print a Word doc from within A5

    Jim, if you're still struggling with this, check the Alpha Five help topic "Microsoft Word Integration".

  6. #6
    Member
    Real Name
    Jose Manuel Atienza
    Join Date
    Mar 2006
    Location
    Philippines
    Posts
    278

    Default Re: Merge AND print a Word doc from within A5

    Thanks, Mike, Tom, for your replies. They gave me my bearings.

    I guess I'll have to save it then. Or maybe I'll see if I can recreate the document as an Alpha Five report or something.

    Jim
    Jim

Similar Threads

  1. Microsoft Word Merge with Word 2007
    By Brad Chesnut in forum Alpha Five Version 8
    Replies: 3
    Last Post: 04-28-2008, 02:36 PM
  2. Open a word doc
    By fgpylant in forum Alpha Five Version 7
    Replies: 4
    Last Post: 05-09-2006, 03:49 PM
  3. Copying a MS Word Doc to A5
    By sqlpython in forum Alpha Five Version 6
    Replies: 6
    Last Post: 03-16-2005, 02:05 PM
  4. Open Word Doc with Switches
    By Elke in forum Alpha Five Version 5
    Replies: 3
    Last Post: 05-11-2004, 06:26 AM
  5. Outputting to Word Doc
    By bhphoto47 in forum Alpha Five Version 5
    Replies: 3
    Last Post: 03-29-2004, 06:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •