?
Solved

C#.NET - MS Word print batch job

Posted on 2011-03-12
2
Medium Priority
?
592 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 1000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

770 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