Reports and Report jobs
The Topal allows to retrieve any available reports and report jobs, which exist in the system via API. The standard reports are available in
German, English and French .
German, English and French .
Example Code
Set the report language to retrieve reports in respective language.
IData reportLanguages = manager.RepLanguages;
foreach (IRepLanguage reportLang in manager.RepLanguages)
{
if (reportLang.ID == -1) // Reports German
// if (reportLang.ID == 1) // Reports English
// if (reportLang.ID == 2) // Reports French
{
int ret = manager.SetRepLanguage(reportLang);
}
}
IRepLanguage reportLanguage = manager.RepLanguage;
UNDER CONSTRUCTION
foreach (IReport report in manager.Reports)
{
if (reportLanguage.ID == -1)
{
/* Retrieve GL_BALANCE_SHEET Report */
if (report.Name.Equals("Bilanz/Erfolgsrechnung"))
{
Report_GL_BALANCE_SHEET = report;
}
/* Retrieve BALANCE_SHEET_WITH_PY_AND_DIFFERENCE Report */
if (report.Name.Equals("Bilanz/ER mit Vorjahr und Abw."))
{
Report_BALANCE_SHEET_WITH_PY_AND_DIFFERENCE = report;
}
/* Retrieve BALANCE_SHEET_WITH_PY Report */
if (report.Name.Equals("Bilanz/ER mit Vorjahr") ) {
Report_BALANCE_SHEET_WITH_PY = report;
}
}
}
String reportName = Report_GL_BALANCE_SHEET.Name;
reportName = reportName.Replace(@"/", "");
String pathname = Path.Combine(directory, reportName + ".pdf");
errorcode = manager.PrintReport(Report_GL_BALANCE_SHEET, 0, pathname);
// Add error handling here
Process.Start("IExplore.exe", pathname);
UNDER CONSTRUCTION
Below you find a code example on how to access report jobs on Topal Server.
UNDER CONSTRUCTION
UNDER CONSTRUCTION