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

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
Tushar123
Posts: 10
Joined: Mon Sep 17, 2012 12:38 am

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

Post 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

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

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

Post 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
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

User avatar
Edmund
Posts: 92
Joined: Thu Nov 29, 2012 2:27 pm

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

Post 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.
Edmund Andersson

AITECH AB

Part of Beijer Integrator Group

Post Reply