how to print msflexgrid data
my pro code is as follows & print code dosent work. pls guide me
Private Sub add_Click()
Text3.Text = Val(Text1.Text) * Val(Text2.Text)
!Item = Combo1
!kg = Text1
!Rate = Text2
!total = Text3
Private Sub remove_Click()
.Move (MSFlexGrid1.Row - 1) ' we minus one because row zero is the header row
Private Sub print_Click()
Printer.Font = "mg shree"
Printer.FontSize = 16
Dim i As Integer
Dim j As Integer
For i = 0 To MSFlexGrid1.Rows - 1
For j = 0 To MSFlexGrid1.Col - 1
Printer.Print MSFlexGrid1.TextMatrix(i, j);
Private Sub Form_Load()
Please do not bump threads. Here are some of the reasons:
Now, what does this mean? "my pro code is as follows & print code dosent work. " Doesn't work how? Do you get errors? If so, what are they?
- You are expecting people with the right knowledge for your problem to be online 24/7 (and have time to answer it as soon as they see it), which is not the case, especially as we are all based in different time zones. People will read & reply when they get the chance.
- As you haven't posted any extra info at all (such as "I've tried the following code ... but it didn't help, it gave this error message instead: ..."), it heavily implies that you aren't trying to find a solution yourself - so it seems like you expect other people to do it all for you.
- If somebody has already replied to (or subscribed to) the thread, they will get an email notification - and find that there is nothing new to see since the previous post (assuming they visited the forums since the previous post - otherwise they will just see that you are impatient).
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista
By Chris Zammit in forum VB Classic
Last Post: 03-03-2009, 08:48 AM
Last Post: 03-26-2008, 04:38 AM
By Johan in forum VB Classic
Last Post: 05-19-2003, 06:57 PM
By Tommy in forum VB Classic
Last Post: 06-23-2002, 04:15 PM
By DH in forum VB Classic
Last Post: 07-31-2000, 12:46 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL