Tutoriale PHP
  Comunitatea PHP Romania

 
Tutoriale PHP
Exemple PHP
Categorii Exemple » Exemplu

Fisier Word


Descriere:
Scriere in fisier MS WORD
Trimis de:Cristi
Voturi:7062
Accesari:1695

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

243 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 Auto Loans | Debt | Record Internet Radio with Tags | Mortgage | Loans
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis