Solved

C#.NET - MS Word print batch job

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

707 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

16 Experts available now in Live!

Get 1:1 Help Now