Tutoriale PHP
  Comunitatea PHP Romania

 
Tutoriale PHP
Exemple PHP
Categorii Exemple » Exemplu

Word in PHP


Descriere:
Cum pot sa generez un fisier Word in Php sau sa scriu intr-un fisier deja existent si sa-l salvez cu alta denumire?
Trimis de:Cristi
Voturi:6726
Accesari:1935

Sintaxa:
<?php
            
if (!file_exists($filename))
         {
            echo 
"Fisierul $filename nu exista\";
            exit();
         }

          $word=new COM(\"Word.Application\") or die(\"Nu pot porni MS Word\");

$word->visible = $visible ;
    
         $word->Documents->Open($filename)or die(\"Fisier invalid\");

$word->ActiveDocument->SaveAs($filename_path,0); // 0 = doc, 6= rtf
$word->quit(0); //0- iesire si 0-nu salvez
?>

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Top membri

Pirahna Pirahna
la birou
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
mihaitha mihaitha
Sibiu
Mascka Mascka
Braila
gabysolomon gabysolomon
Bacau
whooper whooper
Toronto ON
raul_ raul_
dechim dechim
Drobeta Turnu Severin
Amenthes Amenthes

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Site-ul lunii

blg
 Blgpunctro

Propune un site

Online

192 utilizatori online

Parteneriat



Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink Repair Bad Credit | Mortgages | Loans | Charity | Broadband
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis