DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: msflexgrid

  1. #1
    Join Date
    Jan 2009


    how to print msflexgrid data
    my pro code is as follows & print code dosent work. pls guide me

    Option Explicit

    Private Sub add_Click()
    Text3.Text = Val(Text1.Text) * Val(Text2.Text)

    With Data1.Recordset
    !Item = Combo1
    !kg = Text1
    !Rate = Text2
    !total = Text3
    End With

    End Sub

    Private Sub remove_Click()
    With Data1.Recordset
    .Move (MSFlexGrid1.Row - 1) ' we minus one because row zero is the header row
    End With

    End Sub

    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);
    Next j
    Printer.Print ""
    Next i

    End Sub

    Private Sub Form_Load()
    Combo1.AddItem "cVkvs"
    Combo1.AddItem "dkans"
    Combo1.AddItem "[kMhlk[kj"
    Combo1.AddItem "rkanwG"
    Combo1.AddItem "xgw"
    Combo1.AddItem "okVk.ks"
    Combo1.AddItem "p.ks"
    End Sub

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    Please do not bump threads. Here are some of the reasons:
    • 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).
    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?

Similar Threads

  1. MSFlexGrid Row Colour
    By Chris Zammit in forum VB Classic
    Replies: 3
    Last Post: 03-03-2009, 07:48 AM
  2. using MsFlexgrid in VC++6.0
    By nishtha in forum C++
    Replies: 4
    Last Post: 03-26-2008, 03:38 AM
  3. MSFlexGrid <->Data Grid
    By Johan in forum VB Classic
    Replies: 1
    Last Post: 05-19-2003, 05:57 PM
  4. How to save changes to a msflexgrid
    By Tommy in forum VB Classic
    Replies: 0
    Last Post: 06-23-2002, 03:15 PM
  5. Replies: 2
    Last Post: 07-31-2000, 11:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.