To write the code for the viewer in C

• Click on the blue section at the top of Form1 to select the form. Click on the events icon in the Properties window to display available events for Form1. Double-click Load. This creates an event-handling method for the Form1_Load event.

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

[Visual Basic]

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handle;

Dim res As New ResourceManager("rptLocalize.localization", Me.GetType().Assembly)

Me.Viewerl.Localize = res

Dim rpt As New rptLocalize()

Viewerl.Document = rpt.Document rpt.Run(True)

End Sub

private void Form1_Load(object sender, System.EventArgs e) {

ResourceManager res = new ResourceManager("rptLocalize.localization", this.GetTy this.viewerl.Localize = res;

rptLocalize rpt = new rptLocalize();

viewerl.Document = rpt.Document;


Was this article helpful?

0 0

Post a comment