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 / C++ / MFC
  4. Printing Problem !!!

Printing Problem !!!

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
14 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.
  • U Offline
    U Offline
    User 1418550
    wrote on last edited by
    #1

    Hi...I am new to this forum..this being my first message. I am working on a project in which i want to do billing. I have seen in various stores that the window in which they enter the values, it is not the same when the printout comes out, it is having some other format. Can i Know how to print our own customised views while entering some data in a window ?? Pankaj

    Y S V 3 Replies Last reply
    0
    • U User 1418550

      Hi...I am new to this forum..this being my first message. I am working on a project in which i want to do billing. I have seen in various stores that the window in which they enter the values, it is not the same when the printout comes out, it is having some other format. Can i Know how to print our own customised views while entering some data in a window ?? Pankaj

      Y Offline
      Y Offline
      Yulianto
      wrote on last edited by
      #2

      What is the format? Where do you print?


      Work hard and a bit of luck is the key to success.

      :) You don`t need to be genius, to be rich.

      U 1 Reply Last reply
      0
      • Y Yulianto

        What is the format? Where do you print?


        Work hard and a bit of luck is the key to success.

        :) You don`t need to be genius, to be rich.

        U Offline
        U Offline
        User 1418550
        wrote on last edited by
        #3

        Thanks a lot for replying so soon to my problem. Since i am new i was wondering what will happen to my problem. As you asked... 1. I will be printing on a dot matrix printer. 2. regarding the format, so i am unable to tell since i am not getting what you exactly mean by it ? Please do specify so that i can clear the picture. Thanks...

        1 Reply Last reply
        0
        • U User 1418550

          Hi...I am new to this forum..this being my first message. I am working on a project in which i want to do billing. I have seen in various stores that the window in which they enter the values, it is not the same when the printout comes out, it is having some other format. Can i Know how to print our own customised views while entering some data in a window ?? Pankaj

          S Offline
          S Offline
          Sujan Christo
          wrote on last edited by
          #4

          Hi, One simplest way is to use word automation. You can move the data into a word document programatically, and do the printing. If needed we can give the generated output to the user itself b4 printing. Sujan

          U 1 Reply Last reply
          0
          • S Sujan Christo

            Hi, One simplest way is to use word automation. You can move the data into a word document programatically, and do the printing. If needed we can give the generated output to the user itself b4 printing. Sujan

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

            Hi, Thanks for your reply... I had the same thing in my mind, but do not know how to do this thing programatically. can you please help me out how to code this word automation. All what is to be done will be that some values have to be exported to the word document where our format of the printout will be ready. And from there we will have to fire the print out somehow. I know the procedure, but how to code all this is not known by me. Please help me out. Thanks, Pankaj

            S 1 Reply Last reply
            0
            • U User 1418550

              Hi, Thanks for your reply... I had the same thing in my mind, but do not know how to do this thing programatically. can you please help me out how to code this word automation. All what is to be done will be that some values have to be exported to the word document where our format of the printout will be ready. And from there we will have to fire the print out somehow. I know the procedure, but how to code all this is not known by me. Please help me out. Thanks, Pankaj

              S Offline
              S Offline
              Sujan Christo
              wrote on last edited by
              #6

              Hi Pankaj, Have a look @ the following links. It will surely help you http://support.microsoft.com/default.aspx?scid=kb;EN-US;178749[^] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoffdev/html/vsofficedev.asp[^] Sujan

              T 1 Reply Last reply
              0
              • S Sujan Christo

                Hi Pankaj, Have a look @ the following links. It will surely help you http://support.microsoft.com/default.aspx?scid=kb;EN-US;178749[^] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoffdev/html/vsofficedev.asp[^] Sujan

                T Offline
                T Offline
                toxcct
                wrote on last edited by
                #7

                and what do you do if office (or even Word) is not installed ?


                TOXCCT >>> GEII power

                U S 2 Replies Last reply
                0
                • T toxcct

                  and what do you do if office (or even Word) is not installed ?


                  TOXCCT >>> GEII power

                  U Offline
                  U Offline
                  User 1418550
                  wrote on last edited by
                  #8

                  The idea of having office or word and then making the print outs was one way for the solution to the problem. What you have said is very true, and shouldbe thought over. Well, as far as i am concerned, i am not aware of it at all. If you can help me out regarding it then please let me know. Regards, Pankaj

                  T 1 Reply Last reply
                  0
                  • T toxcct

                    and what do you do if office (or even Word) is not installed ?


                    TOXCCT >>> GEII power

                    S Offline
                    S Offline
                    Sujan Christo
                    wrote on last edited by
                    #9

                    Hi toxcct, if office is not there means, then we must have to provide another method like creating a text file, placing the data within that, and print. Sujan

                    T 1 Reply Last reply
                    0
                    • S Sujan Christo

                      Hi toxcct, if office is not there means, then we must have to provide another method like creating a text file, placing the data within that, and print. Sujan

                      T Offline
                      T Offline
                      toxcct
                      wrote on last edited by
                      #10

                      ok, so i assume you know how to insert advanced formating operations in pure txt files, or better, pictures... hummm, i don't really think you go the right way.


                      TOXCCT >>> GEII power

                      S 1 Reply Last reply
                      0
                      • U User 1418550

                        The idea of having office or word and then making the print outs was one way for the solution to the problem. What you have said is very true, and shouldbe thought over. Well, as far as i am concerned, i am not aware of it at all. If you can help me out regarding it then please let me know. Regards, Pankaj

                        T Offline
                        T Offline
                        toxcct
                        wrote on last edited by
                        #11

                        in fact, i was waiting for the answer bacause i'm curious of it but... novice... i'm sorry but i can't help on this.


                        TOXCCT >>> GEII power

                        1 Reply Last reply
                        0
                        • T toxcct

                          ok, so i assume you know how to insert advanced formating operations in pure txt files, or better, pictures... hummm, i don't really think you go the right way.


                          TOXCCT >>> GEII power

                          S Offline
                          S Offline
                          Sujan Christo
                          wrote on last edited by
                          #12

                          So what's Ur Suggestion

                          T 1 Reply Last reply
                          0
                          • U User 1418550

                            Hi...I am new to this forum..this being my first message. I am working on a project in which i want to do billing. I have seen in various stores that the window in which they enter the values, it is not the same when the printout comes out, it is having some other format. Can i Know how to print our own customised views while entering some data in a window ?? Pankaj

                            V Offline
                            V Offline
                            V 0
                            wrote on last edited by
                            #13

                            Hi, If I understand correctly the print out is not considered to be entire documents? Doesn't matter consider following: Maybe you can choose RTF format for that. The RichEdit Control supports that format, you can print it out from code and Word can open it when you write it to file. We use it in our product here (@ my job) all the time... It's also a little easier than automation. Look on MSDN about rtf codes, printing rtf and the RichEdit controls. Hope this helps!! "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix

                            1 Reply Last reply
                            0
                            • S Sujan Christo

                              So what's Ur Suggestion

                              T Offline
                              T Offline
                              toxcct
                              wrote on last edited by
                              #14

                              2 posts before, i said : this[^]


                              TOXCCT >>> GEII power

                              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