Results 1 to 2 of 2

Thread: .csv format cell width

  1. #1

    Default .csv format cell width

    Hello everybody, I made a program that generates a .csv, but once I open it with excel the width of the cells are default.. is there any way to get around this so everytime i open the file the cells are the size they suppose to be depending on the lenght of the text in each cell? I ve tried renaming the file to .xls but it does not work... is there any way to do this??
    Last edited by bostero22; 3rd September 2010 at 20:42.

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: .csv format cell width

    With .csv file format, NO. CSV is plain text (comas separates columns new line rows), as You already know, and it is up to application (in this case excel) to handle the way that data are displayed.
    You could use XML to achieve what You want, see: http://technet.microsoft.com/en-us/m...blogtales.aspx

Similar Threads

  1. How can I Read Write Excel File
    By xingshaoyong in forum Qt Programming
    Replies: 6
    Last Post: 13th July 2011, 20:16
  2. Formatting Excel File
    By bismitapadhy in forum Qt Programming
    Replies: 2
    Last Post: 27th May 2009, 11:16
  3. How to read Excel file with Qt
    By HelloDan in forum Qt Programming
    Replies: 3
    Last Post: 13th May 2009, 20:27
  4. Read \Write Excel File using Qt
    By xingshaoyong in forum Qt Programming
    Replies: 4
    Last Post: 27th July 2007, 22:07
  5. Converting ui file
    By Salazaar in forum Qt Tools
    Replies: 1
    Last Post: 11th May 2007, 15:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.