Poznań
Ph: (+48) 519 401 008
Report Generator 1.46 - can generate forms |
|
Report generator generate reports and print them basis on data received from client application, server, database and report template. To get data, report generator can execute any script in any language.
More over it has following characteristic: - Data transfer in simple XML format - Support all Windows platform in ver. 1.01 (will be available on Linux and Mac OS X in ver. 2.00) - Management from client application written in any language (COM interfaces) - Can work stand-alone basis only on data template and data retrieving from script - All attributes of any object in defined template can be parameterized - Possibility of creation forms dedicated for fill in by a customer. - Created forms can send e-mail with data from controls in XML format. - Created forms can export data from controls in XML format. - FREE - Hyperlink
COMPONENTS
COMMUNICATION
Communication between “siview” and “siexe” programs is conducted via pipes and is between the main program and si... and between si... and a report-defined interpreter. The situation looks as in the picture. Where SiData is the XML element including data transferred to siview or siexe, and SiScript is the element including data for the report linked interpreter and data received from it, and dedicated to the main program – client application. The communication method with the siexe and siview programs can be established for a given report when it is being defined with the siedit program. To do this we start the “Report” -> “Attributes” dialogue from the menu and set the attributes on the „Executable attr.” page.
REPORT PARAMETERS
Report parameters specify the dynamic part of the report. They are divided into obligatory, optional and into those existing before and after executing script. To define report parameters choose “Report” -> “Attributes” from the menu. Chose “Parameters” page from the dialogue window that appears. Right click to start a menu, which allows adding, editing or deleting a parameter.
After choosing the “Add parameter” option a dialogue window with parameter attributes appears. There are parameter name (has to be unique), parameter ID (has to be unique), description, “mandatory” and “Exist before executing script” options and parameter type.
Defined parameters can be used as attribute variables in graphic objects of the report. After defining attribute references of a report object the parameter value will be substituted for the temporary value when executing the report.
Parameters provided by the main application, data file and report linked interpreter are placed inside the <SiData>...</SiData> element. Every parameter begins with a name-defining element that includes the type element (specifying parameter type) and its contents, for example:
<SiData><date><string> 18.02.2004</string></date></SiData>
Transmission of parameters for „Complex” type objects needs to be considered separately. Objects of this type include as components other objects whose attributes can be parameterized. The problem is that such objects are duplicated along the x or y axis until there is no more data predicted for such an object. Correct transmission of data for such objects should be as follows (assuming that the object complex bears the name “table”):
<table>
Inside the “SiDataRow” elements we have parameters – see the “Articels.xml” example.
EXECUTING
Defined by user report template using report editor (siedit.exe) can be executed from any application by dedicated to that interfaces exposed by SiBridgeCom.dll. For example we can consider executing of the report from C++ application.
_COM_SMARTPTR_TYPEDEF(ISiBridge, __uuidof(ISiBridge)); if(argc != 3) { wprintf(L"\nUsage:\nParameters:\n1. Siview or siexe with path\n2. response.xml example with path\n"); return 0; } HRESULT hr =CoInitialize(NULL); if(hr != S_OK)
return 1; { ISiBridgePtr oCommunication; hr =oCommunication.CreateInstance(L"SiBridgeCom.SiBridge"); if(hr == S_OK) { CComBSTR oOut, oApplication(argv[1]), oParam(argv[2]); if((hr =oCommunication->Execute((BSTR)oApplication, (BSTR)oParam)) ==
S_OK) essential reference for developers, with more than 1.5 gigabytes of technical programming information, sample code, documentation, technical articles, the Microsoft Developer Knowledge Base, and anything else you might need to develop solutions that implement Microsoft technology. </string></text><o><SiScript><xyz>To script</xyz></SiScript></o></SiData>"); hr =oCommunication->Transfer(&oOut, (BSTR)oIn); if(hr == S_OK) wprintf((BSTR)oOut); }
} } CoUninitialize(); if(hr != S_OK) { wprintf(L"Error occurred. Please check event viewer\n"); return 1;
}
return 0;
Please realize that you have two possibilities of executing report template using siexe.exe application (directly to the printer) or using siview.exe (print preview mode).
After execution using siview.exe Warning! To run examples please install ActivePerl (free installation).
Some report templates don't need any parameter from the program. These reports collects all data from script engine, which can be anything what you like (from Perl and VB to Java). Such kind reports we can execute just opening them using siview.exe application.
Form samples example1 editor, example1 viewer example2 editor, example2 viewer example3 editor, example3 viewer example4 editor, example4 viewer
|
Report Viewer |
|
Price: freeware Size: 6,443,008 bytes) Version: 1.46
|
Copyright 2010 HTS High Technology Solutions.
All rights reserved.
Poznań
Ph: (+48) 519 401 008
info@htsengines.com
| Sitemap