Main report and sub report parameter in crystal report -
i’m going use main report , sub report showing details. main report has invoiceheader part , sub report has invoice detail part. invoice header , invoice detail has 2 sps.
sp_invoiceheader (use main report)
alter procedure [dbo].[testsp1] @invnoh varchar(20) begin select * inv_header invno=@invnoh end
sp_invoicedetail (use sub report)
alter procedure [dbo].[testsp2] @invno varchar(20) begin select * inv_detail invno=@invno end
i create main report , using insert --> subreport add sub report. both reports used above sps seperatly.
i can pass parameter sub report using main report. auto genetrated paramenter in sub report. (pm-?@invnoh). showing parameter in sub report named @invno auto generated parameter field based on sp. cannot assign @invno passing parameter.
simply equation not working. @invno = pm-?@invnoh
how pass main report parameter stored procedure of sub report? (up can show passed parameter in sub report)
i'm using crystal report version 8.5
Comments
Post a Comment