הרשם שאלות ותשובות רשימת חברים לוח שנה חיפוש הודעות מהיום סמן פורומים כנקראו

   
|!|

השב
 
כלים לאשכול תצורת הצגה
ישן 21-01-08, 23:36   # 1
Labs
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Nov 2007
גיל: 34
הודעות: 1,500
Send a message via Skype™ to Labs

Labs לא מחובר  

[php]אפשרי ליצור קובץ WORD או ?EXEL

שלום לכולם
אפשרי ליצור נגיד ממסד נתונים שיש לי קובץ WORD או EXEL

סתם דוגמא:
נגיד יש לי שם וטלפון
בHTML להציג את זה בטבלה זה לא בעיה

אבל האם אפשרי ליצור קובץ EXEL או WORD ולסדר שם את המידע ולהביא הורדה?
ולהפך
לקחת קובץ EXEL עם הפרטים ולהכניס את זה למסד?

במידה והדבר אפשרי אמשח לקבל מדריך\פקודה\משהו שאוכל להריץ בגוגול

תודה לעוזרים
  Reply With Quote
ישן 22-01-08, 07:33   # 2
DanielS
הוסטסניון
 
מיני פרופיל
תאריך הצטרפות: Jan 2007
מיקום: ישראל
הודעות: 2,429

DanielS לא מחובר  

עובד כמו גדול :
PHP קוד:
<?php 
    $fp 
fopen("test.doc"'w+');  
    
$str "<html dir=\"rtl\"><body><B>אהלן :) יצרתי קובץ וורד עם PHP</B></body></html>";  

    
fwrite($fp$str) or die("asdasd");  

    
fclose($fp);  
?>
__________________
Daniel
Email : daniel [AT] smartwd [DOT] com

  Reply With Quote
ישן 22-01-08, 09:24   # 3
RS324
תודה על תרומתך.
 
מיני פרופיל
תאריך הצטרפות: May 2006
הודעות: 3,173

RS324 לא מחובר  

PHP קוד:
<?php

$word 
= new COM("word.application") or die ("couldnt create an instance of word");

echo 
"loaded , word version{$word->version}";

//bring word to the front

$word->visible 1;

//open a word document

$word->Documents->Add();

//add some text to the document

$word->Selection->TypeText("this is some sample text in the document");

//save the document as sampleword.doc

$word->Documents[1]->SaveAs("sampleword.doc");

//close word

$word->Quit();

//free object resources

$word->Release();

$word null;

?>
  Reply With Quote
ישן 22-01-08, 16:16   # 4
Labs
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Nov 2007
גיל: 34
הודעות: 1,500
Send a message via Skype™ to Labs

Labs לא מחובר  

ציטוט:
נכתב במקור על ידי RS324 צפה בהודעה
PHP קוד:
<?php

$word 
= new COM("word.application") or die ("couldnt create an instance of word");

echo 
"loaded , word version{$word->version}";

//bring word to the front

$word->visible 1;

//open a word document

$word->Documents->Add();

//add some text to the document

$word->Selection->TypeText("this is some sample text in the document");

//save the document as sampleword.doc

$word->Documents[1]->SaveAs("sampleword.doc");

//close word

$word->Quit();

//free object resources

$word->Release();

$word null;

?>
אמממ אני יותר צריך EXEL את האמת זה יעבוד גם לזה?
  Reply With Quote
ישן 22-01-08, 16:34   # 5
reXtea
חבר מתקדם
 
reXtea's Avatar
 
מיני פרופיל
תאריך הצטרפות: Dec 2006
מיקום: באר שבע
גיל: 31
הודעות: 374
שלח הודעה באמצעות MSN אל reXtea

reXtea לא מחובר  

ציטוט:
נכתב במקור על ידי FartBoy צפה בהודעה
אמממ אני יותר צריך EXEL את האמת זה יעבוד גם לזה?
תעשה שם Excel.Application במקום Word.Application
__________________
Amir fridman
-----------------------
Professional website developer.
xhtml, css, javascript, xml, ajax, php, mysql
  Reply With Quote
ישן 22-01-08, 17:20   # 6
meshuga
הנהלת הפורום לשעבר
 
meshuga's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 7,601

meshuga לא מחובר  

ציטוט:
נכתב במקור על ידי RS324 צפה בהודעה
PHP קוד:
<?php

$word 
= new COM("word.application") or die ("couldnt create an instance of word");

echo 
"loaded , word version{$word->version}";

//bring word to the front

$word->visible 1;

//open a word document

$word->Documents->Add();

//add some text to the document

$word->Selection->TypeText("this is some sample text in the document");

//save the document as sampleword.doc

$word->Documents[1]->SaveAs("sampleword.doc");

//close word

$word->Quit();

//free object resources

$word->Release();

$word null;

?>
עובד רק בPHP5 - ווינדווס שמותקן עליו אופיס...תקן אותי אם אני טועה.
  Reply With Quote
ישן 22-01-08, 19:33   # 7
Labs
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Nov 2007
גיל: 34
הודעות: 1,500
Send a message via Skype™ to Labs

Labs לא מחובר  

אממ אני יתאר את מה שאני רוצה לעשות זה יעזור נראה לי

יש לי דף קשר בEXEL אני רוצה את היכולת להעביר ממנו למסד פעם אחת
ואז אני משלב את המסד בפאנל לעידכון פרטים וכו'

ואם מישהו רוצה להוריד את הקובץ זה יוצר לו קובץ EXEL מעודכן
  Reply With Quote
ישן 22-01-08, 19:55   # 8
Ori The Man
משתמש - היכל התהילה
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: חיפה
גיל: 34
הודעות: 3,694
שלח הודעה באמצעות MSN אל Ori The Man Send a message via Skype™ to Ori The Man

Ori The Man לא מחובר  

מצאתי את זה
http://sourceforge.net/project/downl...b.tgz&99520350

מאמין מאוד שיעזור לך
  Reply With Quote
השב

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 

כלים לאשכול
תצורת הצגה

חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 16:11.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ