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. Missing Images while printing in vb.net

Missing Images while printing in vb.net

Scheduled Pinned Locked Moved Visual Basic
graphicscsharphelp
1 Posts 1 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.
  • V Offline
    V Offline
    VB 8 0
    wrote on last edited by
    #1

    Hi Toall , I want to explain you clearly , I am having some panels having some controls CheckBox,ComboBox,Datagridview,Hyperlink,label,Listbox,Picturebox,RadioButt­­ on ,Textbox) &(Oval,Line,Rectangle ). with .BorderStyle = BorderStyle.FixedSingle . All these things are generating at runtime using some buttons . I am taking them in to bitmaps and then printing using ACROBAT DISTILLER printer. I am printing each Bitmap on a new page taking e.MarginBounds of PrintPage event using e.Graphics.DrawImage () . I took each control on a single panel. Then i take the panel into bitmap using control.drawtobitmap() .And then I print the things . Suppose if the panel is having Circle or line or ComboBox or Checkbox or DataGridView or URL or ListBox or RadioButton ,it is showing the borders . Suppose if it is having picturebox or rectangle or Textbox missing the borders . or if the panel is not having controls then it is missing the borders while printing . It is showing the borders in printpreview everytime(I have to zoom to look at these things ) but while printing ,sometimes, it is printing with borders ,sometimes it is missing the borders. If it is the last page to print it is missing last 3-4 lines (Missing the image part at bottom ). Suppose, i am having 2 bitmaps having the samesize and controls ,then in 1st page it is printing with controls & borders exactly correct .But while coming to last page, it is missing bottom 3-4 lines which makes the printing incorrect . So any help about this to make the printing correct exactly. Thanks & Regards ,

    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