Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Printing an excel file
Forum Updated to NodeBB v4.3 + New Features

Printing an excel file

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 2.0k Views
  • 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.
  • ZoptuneZ Offline
    ZoptuneZ Offline
    Zoptune
    wrote on last edited by
    #1

    Hi,

    How can i print an excel file ? I need to keep cell format (color, ...)
    Or can i convert the excel file to PDF ?

    Thx

    RatzzR 1 Reply Last reply
    0
    • ZoptuneZ Zoptune

      Hi,

      How can i print an excel file ? I need to keep cell format (color, ...)
      Or can i convert the excel file to PDF ?

      Thx

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      @Zoptune
      Not tried, I think you can use QPrintDialog and select selection radio button to print the selected content from excel file.
      However you can print in PDF http://stackoverflow.com/questions/8296021/how-to-print-pdf-file-in-qt.

      --Alles ist gut.

      1 Reply Last reply
      0
      • raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        this is a very complex task.
        You need a library to render your Excel file. Once you are able to render it the printing stuff is easy.

        Take a look at this.

        Probably the best would be to use the mentioned ActiveX (Windows only) method and let Microsoft Software do all the work.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        ZoptuneZ 1 Reply Last reply
        0
        • ZoptuneZ Offline
          ZoptuneZ Offline
          Zoptune
          wrote on last edited by
          #4

          Can you explain a little bit more about the QPrintDialog and the radio button, i didn't understand.

          How can i convert my excel file to a pdf file ? Is there a lib for that ?

          I need that process to be automatic and invisible for the user, the user just click on a "print" button.

          Thx

          1 Reply Last reply
          0
          • raven-worxR raven-worx

            this is a very complex task.
            You need a library to render your Excel file. Once you are able to render it the printing stuff is easy.

            Take a look at this.

            Probably the best would be to use the mentioned ActiveX (Windows only) method and let Microsoft Software do all the work.

            ZoptuneZ Offline
            ZoptuneZ Offline
            Zoptune
            wrote on last edited by
            #5

            @raven-worx I and thx for the reply

            I have already seen the ActiveX method to deal with excel file but it seems to difficult for me ^^

            Would it be more easy with Open Doc rather than Excel ?
            I' trying to find an excel to pdf lib, or a command line soft that i can start with my app.

            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