Solved

C#.NET - MS Word print batch job

Posted on 2011-03-12
2
581 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Shortcuts in Word Just the other day I had a training for Microsoft and they wanted me to show how well the new Windows and Office behaved on a touch device, which by the way is great, but it was only then that I realized that using keyboard shortc…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now