Hey thanks for the help I ended up figuring it out. For some reason if I set the property inside a loop it would work but once I put it outside the loop it worked fine. I don't quite understand the why on that. But I'm not going to question it. Thanks again.
I think I understand what you are saying... I have a Sub Print_Click that contains
Dim evPrint As PrintPageEventArgs
AddHandler PrintDoc.PrintPage, AddressOf Me.PrintText
PrintDoc.Print()
Then my Sub PrintText goes through and does my DrawStrings. And that is also where my HasMorePages...
This is going to be extremely summarized because I have everything else right, but I'm thinking that I have the hasmorepages property set in the wrong spot. Hopefully someone will know how I can arrange this to work right. It won't print new pages but it will print one page and at the start of a...
I'm writing a function in my vb.net code to print various fields from a dataview. Everything works well with the exception of line wrapping. I can make a string line wrap but it will just draw at the top of the page and overwrite it self if there is more than one string printed with that...
vb.net 2k3:
I have this code that doesn't work unless I take out the g.DrawString statements. If anyone can look over the code and tell me why I'd appreciate it. The Error is Object reference not set to an instance of an object.
Dim g As Graphics
Dim LabelText As String
LabelText = "--"
x =...
vb .net 2k3 app using microsoft access 2k as db:
I want to be able to go through my data and find a new instance of one value in column1. When I get a new instance I want to be able to look at the values in column2 (only 5 values possible) and count the occurence of the values. After that is...
Got the following code to load my excel data into a dataset. The dataset
merge command I'm trying to use must not be right because it's not working.
Anyone see the problem?
Dim DataSet AsNew DataSet
Dim MyConnection As System.Data.OleDb.OleDbConnection
MyConnection = New...
I'm working on a piece of my project that will take the records from a spreadsheet (anywhere from 10 to 200) with only 6 fields and bring them in to the program and then copy them to the Database. Help or a different suggestion would help.
(VB .NET 2k3 Access 2000 and Excel 2000). I'm not...
Here is the code I have.... It doesn't work cause it errors out after the bold comment line.
Dim MyCommand As System.Data.OleDb.OleDbDataAdapter
Dim MyConnection As System.Data.OleDb.OleDbConnection
Dim myDataReader As System.Data.OleDb.OleDbDataReader
Dim ExcelCommand As...
I have an Excel Spreadsheet I want to import the records (5 fields) into an access 2000 DB. Went on the net looking and found stuff for SQL (which I don't know a thing about) and now I'm confused. (Using VB.NET 2k3) Any help would be appreciated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.