Exemplo n.º 1
0
    protected string rutaAnexoSeguimiento(String ConsultoraCodigo)
    {
        ConnectionBL connectionBL = new ConnectionBL();

         string nombre = "C:\\Reportes\\Seguimiento_" + DateFormatter.getTimestamp(DateTime.Now) + ".pdf";

         String db_databaseName = connectionBL.getDataBaseName();
         String db_serverName = connectionBL.getServerName();
         String db_userID = connectionBL.getUserID();
         String db_password = connectionBL.getPassword();

         ReportDocument rpt = new ReportDocument();
         rpt.Load(Server.MapPath("../CrystalReports/crSeguimiento.rpt"));
         rpt.SetDatabaseLogon("", "", ".", db_databaseName);
         rpt.SetParameterValue("@ConsultoraCodigo", Convert.ToInt32(ConsultoraCodigo));
         rpt.ExportToDisk(ExportFormatType.PortableDocFormat, nombre);

         return nombre;
    }
Exemplo n.º 2
0
    protected string rutaAnexoReingreso(int reingresoID)
    {
        ConnectionBL connectionBL = new ConnectionBL();

        string nombre = "C:\\Reportes\\Reingreso_" + DateFormatter.getTimestamp(DateTime.Now) + ".pdf";

        String db_databaseName = connectionBL.getDataBaseName();
        String db_serverName = connectionBL.getServerName();
        String db_userID = connectionBL.getUserID();
        String db_password = connectionBL.getPassword();

        ReportDocument rpt = new ReportDocument();
        rpt.Load(Server.MapPath("../CrystalReports/crReingreso.rpt"));
        rpt.SetDatabaseLogon("", "", ".", db_databaseName);
        rpt.SetParameterValue("@reingresoID", reingresoID);
        rpt.ExportToDisk(ExportFormatType.PortableDocFormat, nombre);

        return nombre;
    }