Active Factory reports

Jezz

Member
Join Date
Dec 2002
Location
Kendal
Posts
399
Hi,
I'm running InSQL 9.0 and Active Factory 9.1 , what i'm wanting to do is have a report I've setup run and, then save in a set location at a set time/condition .I'm sure this can be done but I can't find any infomation on how to do it anywhere .

Anyone got any Ideas ! o_O
 
I'm not sure if you have figured out how to trigger the report or not...If not there are a couple of ways to do it:

-Via the HMI. You can trigger the report with VB or scripting depending on the HMI you are using.
-Via Microsoft scheduler. I've done this before but this old machine can't do it so I can't really walk through the steps right now.

The easiest way to save the report is some simple VB code in the report. For example:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim today As String
today = Date$
Sheet3.SaveAs "C:\" & today & ".csv"

The above code will save sheet 3 of the report file as "033106.csv" on the C: drive whenever the workbook closes.

Pretty crude but I'm an inexperienced, self-taught VB hack. ;)
 
Thanks Dr but thats not quite what I'm wanting what I want to do is have a report run when an event tag triggers it, there is a way of scripting it but I can't get my head round it I just need pointing in the right direction.

:confused:
 
Jezz said:
Thanks Dr but thats not quite what I'm wanting what I want to do is have a report run when an event tag triggers it, there is a way of scripting it but I can't get my head round it I just need pointing in the right direction.

:confused:

What HMI are you using?
 
We are not wanting to use the HMI unless we have to ( we have 2 InTouch packages on site Ver7.1).We are hoping to run the script with in InSQL or on the InSQL Server.
 

Similar Topics

Hi, I'm currently using the user implementation that factory talk studio ME has incorporated. The users, related to security level letters. This...
Replies
3
Views
2,022
Hello. I need to log data from registers on a CSV file to a USB stick. I have a panelview plus 700 CE, with 5.1 firmware. The catalog number...
Replies
1
Views
2,768
Hey All, I am trying to do some data storing on a PanelView+ and the built in data logging doesn't quite fit my needs. I was looking into the...
Replies
2
Views
5,604
I am creating an application that I would like to have a button pressed and it would bring up a text or pdf document. I have downloaded a sample...
Replies
4
Views
2,719
I am trying to get live data from the SQL server to update via the active factory add in. I can get the data point in once but it just displays...
Replies
1
Views
3,096
Back
Top Bottom