We help IT Professionals succeed at work.

Printing documents in C#

polynominal
polynominal asked
on
Medium Priority
411 Views
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?

Thanks

Poly
Comment
Watch Question

Commented:
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();

        }

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.