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. C#
  4. About PrintPreview Problem?-Plz respond about my query [modified]

About PrintPreview Problem?-Plz respond about my query [modified]

Scheduled Pinned Locked Moved C#
questiondatabasehelp
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.
  • R Offline
    R Offline
    Roney
    wrote on last edited by
    #1

    Hi all, I want to see print previw of my resulted form......but am trying with many ways it is just displaying empty form only.it is not going to disaply the content of my windows form....can u plz give for that solution. this is my code....

    private void printPreviewToolStripMenuItem_Click(object sender, EventArgs e)
    {
    printPreviewDialog1.Document = this.printDocument1 ; // Attach PrintDocument to PrintPreview Dialog
    printPreviewDialog1.FormBorderStyle = FormBorderStyle.Fixed3D ;
    printPreviewDialog1.SetBounds(20, 20, this.Width, this.Height);

    if (printPreviewDialog1.ShowDialog()== DialogResult.OK)
    {
    this.printDocument1.Print();

            }
    

    what is the wrong of code and why it is diplaying empty form when i click the printpreview option. Can u plz give me quick reply

    modified on Friday, December 5, 2008 6:46 AM

    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