Jump to content
Xtreme .Net Talk

Recommended Posts

Guest Cheung
Posted

Hi all,

 

question on printing again. The following code does the printing :

Private Sub PrintTExt(ByVal sender As Object, ByVal ev As PrintPageEventArgs)

ev.Graphics.DrawString(TextBox1.Text, New Font("Arial", 11, FontStyle.Regular), Brushes.Black, 120, 120)

ev.HasMorePages = False

End Sub

 

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Try

Dim printDoc As New PrintDocument()

AddHandler printDoc.PrintPage, AddressOf Me.PrintTExt

printDoc.Print()

Catch ex As Exception

MessageBox.Show("Sorry -- there is a problem printing", ex.ToString())

End Try

End Sub

 

It works well in my NT machine (the machine I wrote the coding). But it doesn't work in Wins98 and Me machines. A windows dialog saying execution erro with Ignore and Close buttons was pop up.

Is there any limitation for Wins98 machine to run vb.net windows application?

 

thanks.

Guest Cheung
Posted

I did that. I installed dotnetframework and also sp1 and sp2. also installed mdac because the application uses MS Access as a db. What else I need to install on the 98/Me machine?

Thank you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...