Preview

Printing in Vb 2010

Better Essays
Open Document
Open Document
4555 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Printing in Vb 2010
This Bonus Chapter accompanies Mastering Visual Basic 2010, which is available from www.sybex.com

Bonus Chapter 2

Printing with Visual Basic 2010
Evangelos Petroutsos
The topic of printing with Visual Basic is a not trivial, and many developers use third-party tools to add print capabilities to their applications. As you already know, there’s no control with built-in printing capabilities. It would be nice if certain controls, such as the TextBox or the ListView control, would print their contents, but this is not the case. Even to print a few text paragraphs entered by the user on a TextBox control, you must provide your own code. Printing with VB isn’t complicated, but it requires a lot of code — most of it calling graphics methods. You must carefully calculate the coordinates of each graphic element placed on the paper, take into consideration the settings of the printer and the current page, and start a new page when the current one is filled. It’s like generating graphics for the monitor, so you need a basic understanding of the graphics methods, even if you’re only going to develop business applications. If you need to generate elaborate printouts, I suggest that you look into third-party controls with built-in printing capabilities, because the controls that come with Visual Studio have no built-in printing capabilities. The examples of this tutorial will address many of your day-to-day needs, and I’m including examples that will serve as your starting point for some of the most typical printing needs, from printing tabular data to bitmaps.

The Printing Components
We’ll start our exploration of Visual Basic’s printing capabilities with an overview of the printing process, which is the same no matter what you print. In the following section, you’ll find a quick overview of the printing controls (you’ll find more information on them, as well as examples, in the following sections). You don’t need to use all these components in your project. Only the

You May Also Find These Documents Helpful

  • Better Essays

    Lab 10

    • 1213 Words
    • 5 Pages

    With the printer installed on the computer, you are ready to make it available to network users by creating a printer share and publishing it in the Active Directory database.…

    • 1213 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    NT1430

    • 285 Words
    • 1 Page

    1. Which commands can you use from the command line to send a file to the default printer?…

    • 285 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    You will be able to describe the operation of a printer attached to a personal computer.…

    • 344 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The different features on the photocopier enable me to change a colour document to black and white and print it. I can also resize the original document to a smaller or larger size.…

    • 996 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Shell is a built in Visual Basic function that executes a command line and returns a handle to that process. Shell takes an optional argument that controls the window style of the new process (maximized, normal, hidden, etc.).…

    • 258 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Practice Mcat Test

    • 25485 Words
    • 102 Pages

    Use this printing guide as a reference to print selected sections of this practice test. To print, click the PRINTER icon located along the top of the window and enter one of the following options in the PRINT RANGE section of the print dialog window: To Print Complete Practice Test Enter Print Range Options Click ALL radio button Click PAGES FROM radio button and enter pages 3 to 26 Click PAGES FROM radio button and enter pages 27 to 47 Click PAGES FROM radio button and enter pages 48 to 50 Click PAGES FROM radio button and enter pages 51 to 74 Click PAGES FROM radio button and enter page 4 to 4 Click PAGES FROM radio button and enter page 75 to 75…

    • 25485 Words
    • 102 Pages
    Good Essays
  • Good Essays

    You should always choose the correct equipment that is appropriate for the task in hand as one piece of equipment will not be appropriate for all tasks. By doing this you will also use as little time as possible and therefore will meet your deadlines and will also make sure that you complete the task to the best possible standard.…

    • 1176 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    A printer is used to print out documents from my computer; it is very efficient in printing out as many copies suitable to me.…

    • 1920 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    The graphic print production flow consists of eight steps; each step has a purpose in order to successfully create graphically printed works. There will be four separate phases of this flow which contain eight different steps.…

    • 2816 Words
    • 12 Pages
    Powerful Essays
  • Satisfactory Essays

    Print

    • 349 Words
    • 2 Pages

    The following passage contains several common errors of the type you are likely to come across in a work. Identify and correct all the errors:…

    • 349 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Printers They are used to produce hard copies of documents. Modern printers can produce high quality documents copies as well as producing quality photos. They can print in colour and black and white, usually when there is a big quantity of document to be printed a black and white printer option is chosen. When a company needs a high quantity printing a laser printer is more economical and faster, graphics and charts can be printed in colour on a laser printer but…

    • 970 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Microsoft Office can be used in any work environment, it’s user friendly and not as complicated as some may think. Microsoft Office is the world’s best and famous work program for studying, personal use, and office work. Microsoft Office includes Access, Excel, Outlook, Power Point, Publisher and Word. I will be including Word, Excel and Power Point in my paper.…

    • 265 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Desktop Publishing

    • 830 Words
    • 3 Pages

    During the past decade, another type of software program called desktop publishing has gained popularity with microcomputer users. With the introduction of the laser printer and its ability to produce high quality documents, desktop publishing software became the fastest growing microcomputer application of the 1980s, and its widespread use continues into the 1990s. Desktop publishing involves using desktop publishing software or word processing software with desktop publishing capabilities, a computer system, and a printer to produce professional-looking documents.…

    • 830 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    desktop publishing

    • 1671 Words
    • 7 Pages

    Desktop publishing is used for creating documents or files on workstations or personal computers by use of page layout software. The system allows you to embed graphs and illustrations directly, specify different justifications and use various typefaces.…

    • 1671 Words
    • 7 Pages
    Powerful Essays
  • Powerful Essays

    Ict 2 Deped Module

    • 12126 Words
    • 49 Pages

    At the end of this module, you are expected to: v explain the basic concept and features of Desktop Publishing(DTP), v use Desktop Publishing Softwares such as Microsoft MS Publisher, Indesign, Adobe Page Maker, Corel Draw, etc. v create designs using Desktop Publishing…

    • 12126 Words
    • 49 Pages
    Powerful Essays

Related Topics