Page 1 of 1

Data base Report to be saved in pendrive (IXT10A Panel)

Posted: Fri Jan 25, 2013 5:49 am
by Tushar123
Dear All

Is it possible to save Data base report directly in external pendrive using script.
Right now I am accessing the Data base report from IXT10A panel using Coreftp software in a laptop.

Awaiting your reply

Regards

Tushar

Re: Data base Report to be saved in pendrive (IXT10A Panel)

Posted: Fri Jan 25, 2013 9:56 am
by mark.monroe
The only way I know how to do that is by querying that datalogger database by using SQL and then outputting that to the USB drive. This forum post talks about querying the database.

The USB path should be: \Hard Disk

Re: Data base Report to be saved in pendrive (IXT10A Panel)

Posted: Sat Jan 26, 2013 3:59 pm
by Edmund
You could let iX create the report for you and then move/copy it to your USB memory.

Code: Select all


void Button1_Click(System.Object sender, System.EventArgs e)
{
	try
	{
		// If report exists, copy it to the USB
		if(File.Exists(@"\FlashDrive\Project\Project Files\Reports\Report.xls"))
			System.IO.File.Copy(@"\Hard Disk\Reports\Reports.xls", @"\FlashDrive\Project\Project Files\Reports\Report.xls", false);
	}
	catch
	{
		// Error!	
	}
}
Best Regards.