Printing documents in C#

Posted on 2006-03-26
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

    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

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Article by: Ivo
    Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
    Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    746 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

    19 Experts available now in Live!

    Get 1:1 Help Now