回复 4楼Lenka.Guo的帖子
前台
<Wpf:Viewer HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Name="testv" Grid.Row="1" Grid.ColumnSpan="2" />
后台
GrapeCity.ActiveReports.PageReport report = new GrapeCity.ActiveReports.PageReport();
report.Load(new System.IO.FileInfo(@"***"));
report.Report.DataSources[0].ConnectionProperties.ConnectString = @"****;";
GrapeCity.ActiveReports.Document.PageDocument p = new GrapeCity.ActiveReports.Document.PageDocument(report);
p.Parameters["***"].CurrentValue = "****";
testv.LoadDocument(p); |