![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 198 Pomógł: 0 Dołączył: 31.01.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam podczas generowanie plików doc wyskakuje mi taki błąd
Kod [b]Fatal error[/b]: Uncaught exception 'com_exception' with message 'Error [0x80020003] Member not found. ' in C:\wamp\www\work\word.php:22 Stack trace: #0 C:\wamp\www\work\word.php(22): com->Release() #1 {main} thrown in [b]C:\wamp\www\work\word.php[/b] on line [b]22[/b] Plik generuje sie poprawnie ale wywal błąd. Wie ktoś może co to za błąd? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 198 Pomógł: 0 Dołączył: 31.01.2008 Ostrzeżenie: (0%) ![]() ![]() |
O to kod :
Kod $word = new COM("word.application") or die("Unable to instantiate Word");
$template_file = "C:/wamp/www/work/reminder.doc"; $word->Documents->Open($template_file); $current_date = date("Y-m-d"); $bookmarkname = "TODAYDATE"; $objBookmark = $word->ActiveDocument->Bookmarks($bookmarkname); $range = $objBookmark->Range; $range->Text = $current_date; $new_file = "c:/wamp/www/work/reminder_new.doc"; $word->Documents[1]->SaveAs($new_file); $word->Quit(); $word->Release(); $word = null; Ten post edytował escobar1983 4.12.2009, 20:47:59 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 9.10.2025 - 18:32 |