Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic System Architect (steve huntington)
Decrease font size
Increase font size
Topic Title: Issues with the Batch Doc Facility
Topic Summary: Not actually generating the reports
Created On: 30-Oct-2006 05:16
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 30-Oct-2006 05:16
User is offline View Users Profile Print this message


Dale Moore

Posts: 23
Joined: 29-Jun-2006

Does anyone know how the Batch Doc Facility (under the Reports menu in System Architect) works?  The help is rather unhelpful, and when I try to set it up to run my reports, it starts to run the first report (brings up a dialog box showing reading the records) but then just quits out and reloads the encyclopaedia again.

I just want to be able to have my reports run overnight and then exported to files automatically.  The DCF file I created is as follows:

REM "System Architect, Version 2001, REPORTS.DCF file"
REM "Copyright (c) 1986-2005 Telelogic AB. All rights reserved."
SETTING { PRINT NO BORDER NO MARGIN 0.25 }
DOS { REPORTFILE REPORTS.RPT }
REPORT "Mapping of Operational Improvements to Services" { PAGES 1 1 }

I have tried with multiple reports, but they all do the same.  The reports work fine if I run them manually using the report generator.  The reports.rpt file is in the same place as the dcf, and it actually seems to load and start to run the report, but never actually writes anything.  I have tried PRINT NO and PRINT YES and no difference.

Also, is there a way to run the SA VBA macros automatically at a scheduled time as well?

Report this to a Moderator Report this to a Moderator
 31-Oct-2006 11:59
User is offline View Users Profile Print this message


SA Team

Posts: 148
Joined: 18-Nov-2005

I am sorry but I am not familiar with the documentation facility, but since it appears you wish to write something which launches both macros and reports, you may like to use :-

Dim objSAApp as New SA2001.Application
Dim objSAEncy as Encyclopedia
Set objSAEncy = Application.Encyclopedia
objSAEncy.ExecuteReport("D:\OutputFile.txt", "ReportName", TRUE, "D:\ReportFile.rpt")

This will run a report called ReportName from the report file "ReportFile.rpt" and output the results int the file "D:\OutputFile.txt". Note if the output is HTML you may wish the extension to be .HTM

To run a macro from VBA you can use :-

Dim objSAUI as New SAUI
objSAUI.ExecuteMacro("MyProj.MyModule.MyMacro", "")

This will execute the macro MyMacro located in the VBA module MyModule, of the VBA Project MyProj.


You could put this code in a separate Visual Basic application and reference SA2001 from that project. The application could be made to start SA if it is not running and run the 'scripts' you have predetermined. This could either be scheduled from windows, or the EXE could run all the time and check for an 'alarm' time, to kick off the operation.

Altenatively, if you do not have Visual Basic, you could write a form/dialog based VBA project which you start up when you leave work for the day. It could either check for some 'alarm' time and do the work, or start straight away (in which case it need only be a macro).

There is no facility inside SA to run VBA scripts at given times. My suggestion would involve a small amount of VBA/VB programming experience.

Hope this helps
Ian


-------------------------

Senior Software Developer
Telelogic UK Ltd.
Report this to a Moderator Report this to a Moderator
 31-Oct-2006 11:59
User is offline View Users Profile Print this message


SA Team

Posts: 148
Joined: 18-Nov-2005

 



-------------------------

Senior Software Developer
Telelogic UK Ltd.

Edited: 31-Oct-2006 at 12:00 by SA Team
Report this to a Moderator Report this to a Moderator
 18-Dec-2007 15:30
User is offline View Users Profile Print this message


Gabriel Ortiz

Posts: 4
Joined: 27-Nov-2007

The code to execute reports does not work in v10.4.23. Is there updated reference material for that method?

Reference my other post on this issue:
Missing Syntax Information
Report this to a Moderator Report this to a Moderator
 15-Feb-2008 11:12
User is offline View Users Profile Print this message


Gabriel Ortiz

Posts: 4
Joined: 27-Nov-2007

This is how mine is setup in v10.4.23 and it runs perfectly fine. if I try to play around with the settings it stops working. Who knows.

REM "System Architect, Version 2001, REPORTS.DCF file"
REM "Copyright (c) 1986-2005 Telelogic AB. All rights reserved."

DOS { REPORTPATH "C:\reports" } //I use the full path
DOS { REPORTFILE "REPORTS.RPT" } //You only have to use quotes when there is a space in the filename, but I use it anyway.

REPORT "Mapping of Operational Improvements to Services" { } //Using Pages never worked for me.

If you have multiple report files you will need another TWO DOS statements and then the REPORT statements.

Hope that helps.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic System Architect forum.
There are currently 0 users logged in.
The most users ever online was 16 on 30-Oct-2008 at 14:46.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.