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
Data base Report to be saved in pendrive (IXT10A Panel)
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Data base Report to be saved in pendrive (IXT10A Panel)
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
The USB path should be: \Hard Disk
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Re: Data base Report to be saved in pendrive (IXT10A Panel)
You could let iX create the report for you and then move/copy it to your USB memory.
Best Regards.
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!
}
}