Information générale
Titre:
OT : X++ with Crystal Report
Versions des environnements
Network:
Windows 2003 Server
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement