Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Print to a template document

Print to a template document

Scheduled Pinned Locked Moved Visual Basic
tutorialhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cory Kimble
    wrote on last edited by
    #1

    I am looking for documentation on how to do the following. I want to see some examples on how to print to a template document. For example an invoice. I assume I need to specify the xy coordinates. But, I can't find or don't know what to put in to search engine to get documentation on this. Can someone please help me? Thank you.

    D D 2 Replies Last reply
    0
    • C Cory Kimble

      I am looking for documentation on how to do the following. I want to see some examples on how to print to a template document. For example an invoice. I assume I need to specify the xy coordinates. But, I can't find or don't know what to put in to search engine to get documentation on this. Can someone please help me? Thank you.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      It's rendered the same way you do things in a forn or control's paint event. You have to render strings of text and graphics in certain locations the just happen to be where the fields are on the page. Settying this up is quite a time consuming, trial-and-error process, so be prepared to go through a lot of paper. On the other hand, you might want to consider using a forms library, like Adobe Acrobat to layout you fields, then have your code fill them in using Acrobat Reaer. When that's done, you can have Acrobat Reader print the finished form.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      1 Reply Last reply
      0
      • C Cory Kimble

        I am looking for documentation on how to do the following. I want to see some examples on how to print to a template document. For example an invoice. I assume I need to specify the xy coordinates. But, I can't find or don't know what to put in to search engine to get documentation on this. Can someone please help me? Thank you.

        D Offline
        D Offline
        Duncan Edwards Jones
        wrote on last edited by
        #3

        If your data for the invoice is in a windows form (textboxes and labels etc.) then the Form Print Control[^] can turn this into a printed page style document and allows you to control the x,y, font, colour and so on of the generated output.

        '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups