Solved

C#.NET - MS Word print batch job

Posted on 2011-03-12
2
583 Views
Last Modified: 2013-12-17
Hi Gurus ~

I'm learning C# and want to implement a program in the office.  I'm just a beginner so if you could provide any guidance, I would greatly appreciate it.  Here's what I'm trying to do:
*  I've created a windows form with a drop-down list and a submit button.
*  The drop down list should be populate with a list of employees.  (The data can be taken from an excel file or from an SQL DB.  I assume it might be easier to read an excel file.
*  If I do open the excel file, it has to be in "read-only" mode.  That file is constantly being updated and I don't want to halt the production system.
*  Based on the selected employee (sales employee), I want to read a list of company names (from excel file or SQL DB).  I'm guessing that I can store the list of names in an array temporarily.
*  Now, based on the company names array, I want to print the word documents associated with the company name to the local printer, i.e. the sales document for "ABC".  (It would be nice if I could print the documents without opening MS Word, but not a must)
*  While all this happening, I would like to update the progress bar on the windows form notifying the user of its progress.

Once again, thank you in advance.  If there is anything unclear, please let me know & I'll try my best to explain further.
0
Comment
Question by:gcastong
2 Comments
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 250 total points
ID: 35116234
0
 

Author Closing Comment

by:gcastong
ID: 35116283
Thanks, i used winbatch to do the work, and visio studio 2010 to manage the user interaction with the app.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question