Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OT : X++ with Crystal Report
Message
De
25/06/2007 20:51:57
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Titre:
OT : X++ with Crystal Report
Versions des environnements
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01235520
Message ID:
01235520
Vues:
60
Hi ToAll,

Everyone who knows how to use X++ and define connection using odbc to call my Crystal report manually. because everytime i will deployed my program i do change the Data Source in the Crystal Report.

currently i used this code.



void clicked()
{
Args args2 = new Args();
FormRun fr;
Object caller;
str parameter,ReportPath,ProductionID;
ITM_Class ITM_Class;
int flagPrint;
Dialog Dialogstart;
str ano;

;

ProductionID = test.Field1;

ReportPath = ITM_Class::GetReportPath().ReportPath;

parameter = ReportPath + "TEST.rpt|trim({Table1.Field1}) = " + "'" + ProductionID + "'";
parameter = "Y" + parameter;
args2.parm(parameter);
args2.name(formstr(ITM_CrystalSalesInvoice));
fr = classfactory.formRunClass(args2);
fr.run();
fr.wait();
fr.finalize();

super();
}
Répondre
Fil
Voir

Click here to load this message in the networking platform