Re: fwrite csv merged cells




Oli Filth wrote:

Pasquale wrote:

How can I fwrite to a csv file with the row having merged cells and centered text? For example, a section title:

            Title
col1    col2    col3    col4    col5    col6


Correct me if I'm wrong, but isn't the point of a CSV file that the *Variables* are *Separated* by *Commas*? It's purely a data-holdig format, not a presentation format. Why would you want to centre things or merge cells?


Can I use XLS to get the format above? If so, how?

I need the administrator to be able to open the file and see the information in the format above and make changes if desired. I just think it would be easier to read rather than everything clumped together.


But anwyay, that's just manipulating strings in PHP. Nothing particularly complicated about that! Or is there something that I'm missing about what you want to do?

e.g.

    $str = $var1 . "  " . $var2 . "  " . $var3;

If you want to align things nicely, use str_pad().

And centering things is just appropriate use of strlen().




.



Relevant Pages

  • Re: Help Please: XP Recovery Console Administrator Password Problem
    ... You can do partition work and formatting when you run the Windows XP setup program. ... Always select a Full NTFS format not the Quick format, the quick format doesn't check the disk for errors, ok if you know that the disk is in good shape, otherwise do the full format. ... with XP Home being that there is no Group Policy ... the built-in administrator account, not your administrator account. ...
    (microsoft.public.windowsxp.general)
  • RE: Windows 2000 Administrator lockout
    ... I know this is probably what you don't want to hear but, I would format the ... Subject: Windows 2000 Administrator lockout ... When the network was built whoever built the server installed everything ... Nobody knows any of the passwords for anything on the system. ...
    (Focus-Microsoft)
  • Re: Password help for Windows XP Proffesional
    ... choose Administrator and when it asks for password ... just hit enter. ... Format and reload ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Windows 2000 Administrator lockout
    ... This certainly doesn't require a format. ... It's worth every penny and is a "must have" for any administrator. ... and mapping how the server was configured to begin with. ... Nobody knows any of the passwords for anything on the system. ...
    (Focus-Microsoft)
  • Re: cant reformat 2nd hard disk
    ... If you are an administrator you can format any logical drive. ... your computer is connected to a network, network policy settings may prevent ... > When windows in normal mode, if I right click on E disk and click format, ...
    (microsoft.public.windowsxp.newusers)