![]() |
Telelogic System Architect (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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 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. |
|
![]() |
|
![]() |
|
------------------------- Senior Software Developer Telelogic UK Ltd. Edited: 31-Oct-2006 at 12:00 by SA Team |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.