ok now i did this and again the same error:
at the top of the IDE,in the general part i selected the formevents and in the declaration part i search for the beginprint event but i did not get it..then how to let the ide create the event handlersCode:Imports System.Drawing.Printing.PrintDocument Public Class Form1 Private _titleFont As Font Private _detailFont As Font Private Sub Print_BeginPrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs) Handles Print.BeginPrint 'Create the font objects we are going to print with _titleFont = New Font(FontFamily.GenericSerif, 16, FontStyle.Bold, GraphicsUnit.Point) _detailFont = New Font(FontFamily.GenericSerif, 9, FontStyle.Regular, GraphicsUnit.Point) End Sub End Class
Please help





Reply With Quote
