Click here to Skip to main content
15,919,422 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPanel with vertical Scroll Bar Pin
sarang_k30-Dec-08 0:30
sarang_k30-Dec-08 0:30 
AnswerRe: Panel with vertical Scroll Bar Pin
Paddy Boyd30-Dec-08 0:38
Paddy Boyd30-Dec-08 0:38 
GeneralRe: Panel with vertical Scroll Bar Pin
sarang_k30-Dec-08 0:39
sarang_k30-Dec-08 0:39 
GeneralRe: Panel with vertical Scroll Bar Pin
Paddy Boyd30-Dec-08 0:40
Paddy Boyd30-Dec-08 0:40 
GeneralRe: Panel with vertical Scroll Bar Pin
sarang_k30-Dec-08 0:45
sarang_k30-Dec-08 0:45 
GeneralRe: Panel with vertical Scroll Bar Pin
AprNgp30-Dec-08 5:26
AprNgp30-Dec-08 5:26 
AnswerRe: Panel with vertical Scroll Bar Pin
Abhijit Jana30-Dec-08 0:54
professionalAbhijit Jana30-Dec-08 0:54 
Questionprint-page event handler Pin
Mr.Himansu29-Dec-08 23:51
Mr.Himansu29-Dec-08 23:51 
I am Trying to print a page in web Application, I have written the below codes but geting an error
Public Event PrintPage(sender As Object, e As System.Drawing.Printing.PrintPageEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
please some body Help me.

Protected Sub btnPrint_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnPrint.Click
Dim pd As PrintDocument = New PrintDocument
pd.PrinterSettings.PrinterName = printersList.SelectedItem.Text
pd.PrintPage += New PrintPageEventHandler(pd_PrintPage)
pd.Print()
End Sub
Public Sub pd_PrintPage(ByVal sender As Object, ByVal ev As PrintPageEventArgs)
Dim g As Graphics = ev.Graphics
Dim font As Font = New Font("Arial", 16)
Dim brush As SolidBrush = New SolidBrush(Color.Black)
g.DrawString("Hello Printer!", font, brush, New Rectangle(20, 20, 200, 100))
End Sub



Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
If PrinterSettings.InstalledPrinters.Count <= 0 Then
Else
Dim printer As String
For Each printer In PrinterSettings.InstalledPrinters
printersList.Items.Add(printer.ToString())
Next
End If
End If
End SubRose | [Rose]
AnswerRe: print-page event handler Pin
Paddy Boyd30-Dec-08 0:41
Paddy Boyd30-Dec-08 0:41 
AnswerRe: print-page event handler Pin
Mr.Himansu6-Jan-09 18:44
Mr.Himansu6-Jan-09 18:44 
AnswerRe: print-page event handler Pin
Member 132294613-Aug-11 21:19
Member 132294613-Aug-11 21:19 
QuestionHow to add a Row to Gridview Using JQuery Pin
ArunVijay29-Dec-08 23:01
ArunVijay29-Dec-08 23:01 
QuestionProblem regarding grid view Pin
ais0729-Dec-08 22:14
ais0729-Dec-08 22:14 
AnswerRe: Problem regarding grid view Pin
Abhijit Jana29-Dec-08 22:21
professionalAbhijit Jana29-Dec-08 22:21 
GeneralRe: Problem regarding grid view Pin
ais0729-Dec-08 22:30
ais0729-Dec-08 22:30 
GeneralRe: Problem regarding grid view Pin
Brij30-Dec-08 0:15
mentorBrij30-Dec-08 0:15 
QuestionImporting excel file Pin
sarang_k29-Dec-08 21:52
sarang_k29-Dec-08 21:52 
AnswerRe: Importing excel file Pin
Abhijit Jana29-Dec-08 21:57
professionalAbhijit Jana29-Dec-08 21:57 
Questionhow to check asynchronous postback on page load ? Pin
mr_muskurahat29-Dec-08 21:47
mr_muskurahat29-Dec-08 21:47 
AnswerRe: how to check asynchronous postback on page load ? Pin
Brij29-Dec-08 22:34
mentorBrij29-Dec-08 22:34 
AnswerRe: how to check asynchronous postback on page load ? Pin
Paddy Boyd29-Dec-08 22:53
Paddy Boyd29-Dec-08 22:53 
QuestionFormView inside the Repeater control Pin
Aftab Sindhi29-Dec-08 21:07
Aftab Sindhi29-Dec-08 21:07 
QuestionFetching Problem Pin
monika_vasvani29-Dec-08 21:04
monika_vasvani29-Dec-08 21:04 
AnswerRe: Fetching Problem Pin
Brij29-Dec-08 21:09
mentorBrij29-Dec-08 21:09 
QuestionPage Navigation in Reportviewer control Pin
Raheem MA29-Dec-08 20:03
Raheem MA29-Dec-08 20:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.