Hi Vinicius, (just to translate for the rest of the group...) >Pessoal, precisaria gerar, através de dados de uma tabela, >arquivos para o Excel. Não teria problemas para gerar um csv >por exemplo, mas como ficariam as formatações dentro do excel? So you want to generate an Excel file. It may be a .csv file but you wonder how to maintain formatting...
An want to know... >Pessoal, eu de novo, gostaria agora de saber como, utilizando >o header content-type e content-disposition, poderia salvar o >arquivo xls direto ao invés de abrir a janela para o usuário >perguntando se é para abrir, salvar ou cancelar........ Asking if such a file can be saved directly and not having the window popup asking you to choose between cancel, save and view. To generate a csv file is easy, and you will want to do that. However, all formatting will be lost, and you won't be able to include formulas and graphs either :-( There are ways (some publicly available classes) to generate real excel files but you only want to do that if you have quite some time available. In 90% of the situations a non-formatted csv will work. About suppressing the popup: I guess that depends on the setup of the computer of the user who is viewing the site but generally you will get this popup unlesss the user has installed an excel viewer plugin. You should give the header identifying the file as csv or as xls anyway, but if there is no plugin to show the spreadsheet, you will get the popup anyway. Marc Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
