Guest Cheung Posted August 16, 2002 Posted August 16, 2002 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. Quote
Anis Posted August 16, 2002 Posted August 16, 2002 I guess every Machine running .Net Application should have a .Net Framework Installed. Quote Regards, Anis Miles to go Before I Sleep.
Guest Cheung Posted August 16, 2002 Posted August 16, 2002 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. Quote
Anis Posted August 16, 2002 Posted August 16, 2002 As long as you have all the .Net runtime installed, it should work. Quote Regards, Anis Miles to go Before I Sleep.
Guest Cheung Posted August 16, 2002 Posted August 16, 2002 I found sby said that "printing seems to have lots of bugs with windows 98" (see the link below) http://pub13.ezboard.com/fvisualbasicexplorerfrm40.showMessage?topicID=93.topic have you heard this before. Thank Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.