Printing Problems

When i take printouts directly from the forms with the MSFlex Grid in it.... Printer never prints the MS-Flex grid box neatly... The Grid box in the hard copy is totally printed with a dark gray color... and no text will be seen... Even if i change the background coor of the grid box ... it is printed with a dark gray color.... Can any one please help me what to do to get it prinet properly.......


Answer this question

Printing Problems

  • Sportsdude

    That was also not working.... can we use reports for printing won't that be a good idea

  • Dan Amero

    Another option would be to modify your app to use the DataGridView instead of MSFlexGrid - it's the ActiveX control that is causing your printing problem.

  • watch is

    what do u think about going on to reports

  • Cem DEMiRKIR

    Yes you can use crystal reports
  • Tommych

    We can use crystal reports that wud be better

  • ahmedilyas

    Assuming that you are currently using:

    PrintForm1.Print(MyForm, ClientAreaOnly)

    try changing it to:

    PrintForm1.Print(MyForm, CompatibleModeClientAreaOnly)

    If that doesn't solve the problem, you may be out of luck. There was a known issue with printing some ActiveX controls in VB 6, and that same issue would apply to the PrintForm component.

    Hope this helps,

    Steve



  • edmsing

    Hi Siddarth,

    You don't say, but since this is the Power Packs forum I assume you are using the PrintForm component. Have you tried using different PrintOption settings (CompatibleModeClientAreaOnly vs ClientAreaOnly) The two settings use different implementations to cature the form, so sometimes one will give better results than the other.

    Steve Hoag

    Visual Basic Power Packs



  • Jonathan Argue

    yup you are right is was using PrintForm componen...... Can you just give me a sample code... and are u sure that it will never give me problems again... oris there any other solution...

  • c0dem0nkey1519

    IMHO reports are almost always a better solution. The PrintForm component was developed primarily because VB 6 had a PrintForm method and there was no easy alternative in .NET.

    Although it's tempting to design a form to look like a paper form, it isn't good UI design - design the form for usability, and use a report for printing.



  • Printing Problems