• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 396
  • Last Modified:

Printing documents in C#

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?

Thanks

Poly
0
polynominal
Asked:
polynominal
1 Solution
 
dkloeckCommented:
you can find a project to print rtf documents (writen as easy as possible) here:
http://www.codeproject.com/Purgatory/WordPrinting.asp
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);
MyTimer.Start();

private void TimerEvent(object sender, EventArgs e)
        {
           
           MyTimer.Stop();
          //Print Document
          MyTimer.Start();

        }

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now