Automatic run, after a certain period of time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EgoSum
    New Member
    • Mar 2007
    • 20

    Automatic run, after a certain period of time

    Hi,

    What I can add to this snippet of source, so that periodical automatic run, after a certain period of time?

    private void check()
    {
    LocalReport rep = new LocalReport();
    rep.ReportPath = @"..\..\Report. rdlc";

    DirectoryInfo di = new DirectoryInfo(@ "C:\Print") ;
    FileInfo[] fi = di.GetFiles();

    foreach (FileInfo fiTemp in fi)
    {

    if (fiTemp.Extensi on == ".xml")
    {
    m_currentPageIn dex = 0;
    rep.DataSources .Add(new ReportDataSourc e("Sales", LoadSalesData(f iTemp.Name)));
    Export(rep);
    Print();
    File.Move(@"C:\ Print\" + fiTemp.Name, @"C:\Printed \" + fiTemp.Name);
    }
    }
    }
Working...