CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2004
    Posts
    32

    printing the content of a form

    hello guys

    how can i print the content of a form

    for example if i have a form which shows product and prices which are displayed in a particular form in two different labels and i want to print that content to a printer , what should i do to accomplish this task.

    thanks

  2. #2
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,900

    Re: printing the content of a form

    You can simply say

    Form1.PrintForm

    or


    Printer.Print Form1.Lable1

    or
    Printer.Print "AAAAAAAAAAAAAAAAAAAAAAAAAAA"

    or
    Printer.Print format(MyVariable,"#############.00"); ' no interline

    etc

    note when printing variables

    A ; (semicolon) after the variable will not cause an interline


    Printer.EndDoc with throw a page (end you report)

    This is not necessary with Form1.PrintForm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured