[Last Call] Learn how to a build a cloud-first strategyRegister Now


Printing documents in C#

Posted on 2006-03-26
Medium Priority
Last Modified: 2012-06-27
I have an online form which allows candidates to fill in an application form and attach a CV in rft format. The CV is stored in an SQL database as an imagetype. I have written a C# app that grabs the data in that field and outputs it in an rtf document to a network drive. This is done once a day. so there could be anything between 0 and 50 documents a day in that folder.

What I want to do now is print the rtf documents to a named printer, but print them every 15 seconds, i.e if there are 3 documents there called., 1.rft,2.rtf and 3.rtf, print 1.rtf then wait 15 seconds and print 2.rtf and so far.

Can anybody help with this?


Question by:polynominal
1 Comment
LVL 10

Accepted Solution

dkloeck earned 2000 total points
ID: 16298971
you can find a project to print rtf documents (writen as easy as possible) here:
and to print it every 15 seconds just use a timer:

Timer MyTimer=new Timer();
Timer.Interval =15000;//15 seconds
Timer.Tick += new Eventhandler(TimerEvent);

private void TimerEvent(object sender, EventArgs e)
          //Print Document



Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month18 days, 2 hours left to enroll

829 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