Hi,
What I can add to this snippet of source, so that periodical automatic run, after a certain period of time?
private void check()
{
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")
{
}
}
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);
}rep.DataSources .Add(new ReportDataSourc e("Sales", LoadSalesData(f iTemp.Name)));
Export(rep);
Print();
File.Move(@"C:\ Print\" + fiTemp.Name, @"C:\Printed \" + fiTemp.Name);