To write the code to load the saved RDF into the Active Reports viewer in C

• Double-click on the Windows Form to see the code view for the Windows form. Add the following code to create the loadRDF event.

The following example shows what the code for the method looks like:

[Visual Basic] Private Sub loadRDF() rpt.Run()

Viewer1.Document.Load(Application.StartupPath + "\\NewRDF.RDF"

End Sub

private void loadRDF() {

ActiveReport1 rpt = new ActiveReport1(); rpt.Run();

viewer1.Document.Load(Application.StartupPath + "\\NewRDF.RDF");

0 0

Post a comment