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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Need help to print a receipt in a WPF project

Need help to print a receipt in a WPF project

Scheduled Pinned Locked Moved C#
csharpwpfhelp
8 Posts 5 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
    vanjier
    wrote on last edited by
    #1

    Hi, I need a code for printing a receipt in a WPF (C#) application using PrintDocument or another one else. Thanks

    D D J 3 Replies Last reply
    0
    • V vanjier

      Hi, I need a code for printing a receipt in a WPF (C#) application using PrintDocument or another one else. Thanks

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

      OK. The only code you're going to get is the code that YOU write yourself. Nobody here is going to do it for you and just Googling around for "print a receipt from a WPF app" is going to get you some vague code samples that you're going to have to adapt anyway.

      A guide to posting questions on CodeProject

      Click this: Asking questions is a skill. Seriously, do it.
      Dave Kreskowiak

      U V 2 Replies Last reply
      0
      • V vanjier

        Hi, I need a code for printing a receipt in a WPF (C#) application using PrintDocument or another one else. Thanks

        D Offline
        D Offline
        Dilan Shaminda
        wrote on last edited by
        #3

        Google and you can find many examples :) WPF Print Engine: Part I[^] http://www.nullskull.com/a/1378/wpf-printing-and-print-preview.aspx[^] http://sourceforge.net/projects/itextsharp/[^]

        V 1 Reply Last reply
        0
        • V vanjier

          Hi, I need a code for printing a receipt in a WPF (C#) application using PrintDocument or another one else. Thanks

          J Offline
          J Offline
          Jaimin H Soni
          wrote on last edited by
          #4

          Another way is: 1. Create RDLC or Report File for as per your print document requirement. 2. Assign DataSet to you report file. 3. Create PDF file in specified location. 4. Using Browser control you can show it in pdf viewer in you apps. 5. And Generate print from pdf viewer.

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            OK. The only code you're going to get is the code that YOU write yourself. Nobody here is going to do it for you and just Googling around for "print a receipt from a WPF app" is going to get you some vague code samples that you're going to have to adapt anyway.

            A guide to posting questions on CodeProject

            Click this: Asking questions is a skill. Seriously, do it.
            Dave Kreskowiak

            U Offline
            U Offline
            User 10840537
            wrote on last edited by
            #5

            your code is totaly right but still some thig error is held in this code so please check it oncve again please :^)

            D 1 Reply Last reply
            0
            • U User 10840537

              your code is totaly right but still some thig error is held in this code so please check it oncve again please :^)

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

              Uhhh...Just who do you think you're replying to?

              A guide to posting questions on CodeProject

              Click this: Asking questions is a skill. Seriously, do it.
              Dave Kreskowiak

              1 Reply Last reply
              0
              • D Dave Kreskowiak

                OK. The only code you're going to get is the code that YOU write yourself. Nobody here is going to do it for you and just Googling around for "print a receipt from a WPF app" is going to get you some vague code samples that you're going to have to adapt anyway.

                A guide to posting questions on CodeProject

                Click this: Asking questions is a skill. Seriously, do it.
                Dave Kreskowiak

                V Offline
                V Offline
                vanjier
                wrote on last edited by
                #7

                Sory Mister..

                1 Reply Last reply
                0
                • D Dilan Shaminda

                  Google and you can find many examples :) WPF Print Engine: Part I[^] http://www.nullskull.com/a/1378/wpf-printing-and-print-preview.aspx[^] http://sourceforge.net/projects/itextsharp/[^]

                  V Offline
                  V Offline
                  vanjier
                  wrote on last edited by
                  #8

                  Thanks for your help

                  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