Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Passing text from Qt to exaro
Forum Updated to NodeBB v4.3 + New Features

Passing text from Qt to exaro

Scheduled Pinned Locked Moved Qt Creator and other tools
13 Posts 2 Posters 3.2k 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.
  • M Offline
    M Offline
    mrneutel
    wrote on last edited by
    #1

    Hi,
    i've started to using Qt to develop an app to print labels at my work.
    Actually we use word and excel to create the labels, but there are about 10 different labels, so we use 10 different files.
    I've builded an app using forms, to each different label, but now i need to print the label!!
    To create the label i'm going to use exaro, but i have a problem!!
    How do i pass the contents of the textbox of a form to a report buit in exaro, and print it!?!?!?

    Thank you for your help!!!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Your question is a big vague, you should at least give a link to where one can find a description of exaro.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mrneutel
        wrote on last edited by
        #3

        Hi, thanks for helping!!
        Exaro is a software i found after researching a little, in order to create reports to use in the apps anyone could build using Qt.
        This link is the example they give in their site, but it's a little confusing:
        http://exaro.sourceforge.net/cms/dusing.html

        thankyou once again for trying to help!!

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          One thing I don't understand is the use of exaro at that point.

          I suppose that your excel/word documents simply represent a page of labels, is that right ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mrneutel
            wrote on last edited by
            #5

            Not quite, each label is destined for a diferent client,
            We can't mix them.
            The idea was to create a single app, to print each label for the right client. Because each label is diferent for each client, and when we print the label is always diferent even if it is for the same client because the data that is is the label, changes according to some parameters.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mrneutel
              wrote on last edited by
              #6

              In other words, the invoice of each client, as some info that we must put in the aditional label.
              The info in each invoice changes, acordingly to the order made by the client!!

              I hope i could explain myself correctly!!

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Do you have all these informations in a database somewhere ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mrneutel
                  wrote on last edited by
                  #8

                  No, the info comes printed in the invoice, when we finish packaging the material for the client.
                  Some of the data is the number of boxes (it changes), order number, and some obs thatr the client requests to be written in the adittional label that we create!!

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Well, technically that should be stored somewhere anyway e.g. the client additional information request so you don't have to do it at the last moment and you could also automate that part

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mrneutel
                      wrote on last edited by
                      #10

                      Yes you are right, but the program we use to process the packaging and sending of the shipment to the client, is a closed system, and it's a little of bounderies for me and the entire wharehouse!!
                      This would be a secondary program to use whenever we need!!!

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        I completely see what you mean.

                        But If you have regular clients that require this, designing around a database will allow you to avoid having to reenter the common data each time you have to.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mrneutel
                          wrote on last edited by
                          #12

                          You're absolutely right, but the problem is that the data we use is, for example:

                          • The number of boxes of the packaging (it changes according the number of items the client requests);
                          • The order number of the clients request;
                            And some other data, that it is not static, wich reflects the need of having a form, where i can input the data, necessary for the label, and then print it!!
                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            Then just create a dialog where you can input all of that and then generate e.g. a QTextDocument that you will print

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved