×

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 .
 
Example Code
 
Set and get report language
Set the report language to retrieve reports in respective language.
 
Set report 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;
    
  
Set report language
    
UNDER CONSTRUCTION
    
  
 
Reports
Below you find a code example on how to access reports on Topal Server.
 
Create Payment
    
            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);
    
  
Create Payment
    
UNDER CONSTRUCTION
    
  
 
Report Jobs
Below you find a code example on how to access report jobs on Topal Server.
 
Access report job
    
UNDER CONSTRUCTION
    
  
Access report job
    
UNDER CONSTRUCTION