I've create 2 ssrs reports one for puch and one for sales to print the voucher from
LedgerTransVoucher form
so i create a buttom in in the form with cliced method
void clicked()
{
MenuFunction SSRS_MyReport;
Args Args;
str journalid ="";
Switch (GeneralJournalEntry.JournalCategory)
{
case LedgerTransType::Purch:
SSRS_MyReport = new MenuFunction(menuItemOutputStr(ForVendByDPPrintGenJoural),MenuItemType::Output);
break;
case LedgerTransType::Sales :
SSRS_MyReport = new MenuFunction(menuItemOutputStr(ForCustByDPPrintGenJoural),MenuItemType::Output);
break;
default :
break;
}
Args = new Args();
journalid = "Dataset1_journalNumbar=" +GeneralJournalEntry.JournalNumber;
// Assign parameters to report
Args.parm(journalid);
// Run the report
SSRS_MyReport.run(Args);
super();
}
but the journal number not passed to the report parameter
is this good idea or there is preferable one and why the journal number not passed to the report parameter
i have to copy it and pest in the report
thanks