private void btGerar_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                string NomeArquivo = "Balanco.rep";
                //
                string parTITULORELATORIO = "Relatório - Balanço Patrimonial";
                string parTITULOSOFTHOUSE = "T2Ti.COM";
                string parTITULORODAPE    = "T2Ti Tecnologia da Informação Ltda. - (61)3042.5277";
                //
                string ConsultaSQL = "";
                //
                string ConteudoServidor = NomeArquivo + "|" + ConsultaSQL + "|" + parTITULORELATORIO + "|" + parTITULOSOFTHOUSE + "|" + parTITULORODAPE;

                ReportManX rp = new ReportManX();

                rp.GetRemoteParams("localhost", 3060, "Admin", "", "T2Ti", NomeArquivo);
                rp.SetParamValue("ANO_ATUAL", textBox1.Text);
                rp.SetParamValue("ANO_ANTERIOR", int.Parse(textBox1.Text) - 1);
                rp.ExecuteRemote("localhost", 3060, "Admin", "", "T2Ti", ConteudoServidor);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        // Implementação para o primeiro ciclo do ERP
        public void exibirRelatorio(String Arquivo, String Janela, String ConsultaSQL)
        {
            try
            {
                string NomeArquivo = Arquivo + ".rep";
                //
                string parTITULORELATORIO = "Relatório - " + Janela;
                string parTITULOSOFTHOUSE = "T2Ti.COM";
                string parTITULORODAPE    = "T2Ti Tecnologia da Informação Ltda. - (61)3042.5277";
                //
                string ConteudoServidor = NomeArquivo + "|" + ConsultaSQL + "|" + parTITULORELATORIO + "|" + parTITULOSOFTHOUSE + "|" + parTITULORODAPE;

                ReportManX rp = new ReportManX();

                rp.ExecuteRemote("localhost", 3060, "Admin", "", "T2Ti", ConteudoServidor);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 3
0
        // Implementação para o primeiro ciclo do ERP
        public void exibirRelatorio(String Arquivo, String Janela, String ConsultaSQL)
        {
            try
            {
                string NomeArquivo = Arquivo + ".rep";
                //
                string parTITULORELATORIO = "Relatório - " + Janela;
                string parTITULOSOFTHOUSE = "T2Ti.COM";
                string parTITULORODAPE = "T2Ti Tecnologia da Informação Ltda. - (61)3042.5277";
                //
                string ConteudoServidor = NomeArquivo + "|" + ConsultaSQL + "|" + parTITULORELATORIO + "|" + parTITULOSOFTHOUSE + "|" + parTITULORODAPE;

                ReportManX rp = new ReportManX();

                rp.ExecuteRemote("localhost", 3060, "Admin", "", "T2Ti", ConteudoServidor);

            }
            catch (Exception ex)
            {
                throw ex;
            }
        }