PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > spreadsheet column width
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
spreadsheet column width

Réponse
 
LinkBack Outils de la discussion
Vieux 22/06/2008, 21h25   #1
sumithar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut spreadsheet column width

I am trying to create a spreadsheet from mysql data. I have the
requisite headers in place for content type and all that.
All I am doing is executing the SQL query and displaying the data
formatted in an HTML table.

Whatever width I assign to the HTML table columns ( using <td
width="nnn"> it doesn't have any impact on the width of the
spreadsheet column- that is always staying the same.

Any idea how to control it?

The headers I am using are as follows
header("Content-type: application/vnd.ms-excel");
header("Content-disposition: attachment; filename=report.xls");
header("Pragma: no-cache");
header("Expires: 0");
  Réponse avec citation
Vieux 22/06/2008, 22h17   #2
Paul Lautman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: spreadsheet column width

sumithar wrote:
>I am trying to create a spreadsheet from mysql data. I have the
> requisite headers in place for content type and all that.
> All I am doing is executing the SQL query and displaying the data
> formatted in an HTML table.
>
> Whatever width I assign to the HTML table columns ( using <td
> width="nnn"> it doesn't have any impact on the width of the
> spreadsheet column- that is always staying the same.
>
> Any idea how to control it?
>
> The headers I am using are as follows
> header("Content-type: application/vnd.ms-excel");
> header("Content-disposition: attachment; filename=report.xls");
> header("Pragma: no-cache");
> header("Expires: 0");


This isn't really a php question. I would suggest asking it in one of :

microsoft.public.excel.misc or microsoft.public.excel.programming

I think you'll have more luck writing it out in XML format:
http://msdn.microsoft.com/en-us/libr...ffice.10).aspx


  Réponse avec citation
Vieux 22/06/2008, 22h40   #3
sumithar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: spreadsheet column width

On Jun 22, 5:17pm, "Paul Lautman" <paul.laut...@btinternet.com>
wrote:
> sumithar wrote:
> >I am trying to create a spreadsheet from mysql data. I have the
> > requisite headers in place for content type and all that.
> > All I am doing is executing the SQL query and displaying the data
> > formatted in an HTML table.

>
> > Whatever width I assign to the HTML table columns ( using <td
> > width="nnn"> it doesn't have any impact on the width of the
> > spreadsheet column- that is always staying the same.

>
> > Any idea how to control it?

>
> > The headers I am using are as follows
> > header("Content-type: application/vnd.ms-excel");
> > header("Content-disposition: attachment; filename=report.xls");
> > header("Pragma: no-cache");
> > header("Expires: 0");

>
> This isn't really a php question. I would suggest asking it in one of :
>
> microsoft.public.excel.misc or microsoft.public.excel.programming
>
> I think you'll have more luck writing it out in XML format:http://msdn.microsoft.com/en-us/libr...ffice.10).aspx


OK- I will try those forums. Come to think of it, there is no php
factor in this apart from the headers, I guess.
Rgds
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h19.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09194 seconds with 11 queries