programming word and excel templates

This is a discussion on programming word and excel templates within the Windows Programming forums, part of the Platform Specific Boards category; I was wondering how I could program a template for word or excel so I could just enter the fields ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    4

    programming word and excel templates

    I was wondering how I could program a template for word or excel so I could just enter the fields (ie - name, date, RE, stuff like that) so that I could save time writing letters. I don't know where to start though.

    Just the basics would help a ton

    What file would I modify, and can I do it in C++?

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    329
    Why not use Word or Excel to create the templates?
    Create a new document, and save it as a template.

  3. #3
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    I agree. Unless you really need extra functionality on top of what Microsoft gives you, built in templates, or Word/Excel created templates, should be fine.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    4
    that would work fine, except that I meant a template that would span more than one app. Like say I'm composing a letter, an invoice, and a cover memo - all to the same company, about the same thing, on the same date. I want to just type in those fields in a dialog box, and have everything pretty much filled out for me. I know it's easier to have individual templates (that's what I'm doing now), but I was just curious how I could do it.

  5. #5
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    I suppose it's possible. What you could do is have your own interface, with some edit controls, buttons, and fancy graphics. Enter the name, address, etcetera, and your program outputs the data in Word/Excel file format. That might prove difficult though. Another option may be to have the documents open, and use interprocess coding to place the text directly in there. That would remove the need to work out the Word/Excel file formats. However, it would require you to learn interprocess coding.

    Could you be a little more specific about what you want? Maybe, say exactly how you picture this application in your mind, and how far you're willing to go to realise it.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How does MS Excel or Word draw to the screen??
    By Fremontknight1 in forum Windows Programming
    Replies: 2
    Last Post: 07-20-2008, 02:58 PM
  2. Is it possible to write into an Excel spreadsheet?
    By rtsc17 in forum C++ Programming
    Replies: 6
    Last Post: 09-18-2003, 11:15 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21