Announcement

Collapse
No announcement yet.

Print .jpg with xpriint

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Print .jpg with xpriint

    I'm printing Invoices with XPRINT. How can I add our Logo (.jpg) to the invoice?

  • #2
    Simply convert it to a bitmap and use XPRINT RENDER bmpfile$. There is no built-in functionality for jpg files (or gif, png, etc.). Using an RLE-compressed bitmap may be an option if the logo is very big, these are also natively supported by Windows (and thus PB).
    kgpsoftware.com | Slam DBMS | PrpT Control | Other Downloads | Contact Me

    Comment


    • #3
      Can anyone point me to a source code example of converting a .JPG to .BMP and loading it into DDT? Would also like to print an invoice
      with an image from a digital camera. Did you get XPRINT to print an invoice with something other than .BMP?
      The world is full of apathy, but who cares?

      Comment


      • #4
        Show, Select all, copy, paste into Paint, Save As BMP?

        I don't understand why a one-time conversion of a jpeg to a bmp for inclusion as an invoice logo should necessitate a 'code' solution.
        Michael Mattias
        Tal Systems (retired)
        Port Washington WI USA
        [email protected]
        http://www.talsystems.com

        Comment


        • #5
          Clients would not like having to go through such a process.
          A folder will be monitored and the images loaded into a database.
          I see the client in a record and then clicking on the image to load
          into the database. Not sure if the image should be converted
          before placing into the database or just before loading into DDT.
          Again, anyone have code on converting .JPG to .BMP?
          The world is full of apathy, but who cares?

          Comment


          • #6
            To convert JPG to BMP see this:
            PowerBASIC and related source code. Please do not post questions or discussions, just source code.


            Paul.

            Comment


            • #7
              Great, thank you!
              The world is full of apathy, but who cares?

              Comment


              • #8
                Clients would not like having to go through such a process. A folder will be monitored and the images loaded into a database.
                That was unknown at the time of my suggestion, and your post said you wanted to print "an" (singular) invoice, which suggests one (singular) image which happens to have been created with a digital camera.

                FWIW, I often create "client-logo'd" reports. My quotations include the phrase, "Client to supply artwork in Windows BMP format." Works great.

                MCM
                Michael Mattias
                Tal Systems (retired)
                Port Washington WI USA
                [email protected]
                http://www.talsystems.com

                Comment


                • #9
                  If you need to support more then just jpg to bmp, then I would use Developers Image Library at http://openil.sourceforge.net/ , it's free, works great and some kind soul (Jose, Patrice, someone else?) translated enough of the c headers to make it a snap to use.
                  "There are two novels that can change a bookish fourteen-year old's life: The Lord of the Rings and Atlas Shrugged. One is a childish fantasy that often engenders a lifelong obsession with its unbelievable heroes, leading to an emotionally stunted, socially crippled adulthood, unable to deal with the real world. The other, of course, involves orcs." - John Rogers

                  Comment

                  Working...
                  X