1. Read/Write Microsoft Word documents

Can anyone tell me how to have euphoria
  1.  write files in Microsoft word format?  (or is this impossible)
and the reverse of that..
   2.  Read in data from a Microsoft word document, instead of plain text.

One reason I'm asking is because i've found a small basic-derivitive
language to code on Palm OS.  I want to be able to interact between the palm
(i have a class set of 25) and the main computer.  Basically, the students
would all use Palms..and they would hot sync to the main (teacher)
computer..which would automatically grade/correct their work and also enter
it into my grading program.

Here's my problem...
   just plain text files won't "hot sync"....i can "hot sync" Word To Go
documents from the palm to the pc.  The pc reads them in as a word document.
On the other hand, I can send a word document from the pc to the palm, and
the palm reads it in as a "word to go" document.

Wait...I may have just solved my own problem.  Would it work to simply name
the files with a ".doc" extension...but still treat them as a plain file?

new topic     » topic index » view message » categorize

2. Re: Read/Write Microsoft Word documents

You can simply tag a .txt file as .doc, that works ok. If you want to
use documents with formatting, that is another thing altogether, and
quite complicated. .rtf formated files would probably work, while not
being as complex as microsoft word files.

On Sun, 18 Jul 2004 18:13:15 -0400, Michelle Rogers
<michellerogers at bellsouth.net> wrote:
> 
> Can anyone tell me how to have euphoria
>   1.  write files in Microsoft word format?  (or is this impossible)
> and the reverse of that..
>    2.  Read in data from a Microsoft word document, instead of plain text.
> 
> One reason I'm asking is because i've found a small basic-derivitive
> language to code on Palm OS.  I want to be able to interact between the palm
> (i have a class set of 25) and the main computer.  Basically, the students
> would all use Palms..and they would hot sync to the main (teacher)
> computer..which would automatically grade/correct their work and also enter
> it into my grading program.
> 
> Here's my problem...
>    just plain text files won't "hot sync"....i can "hot sync" Word To Go
> documents from the palm to the pc.  The pc reads them in as a word document.
> On the other hand, I can send a word document from the pc to the palm, and
> the palm reads it in as a "word to go" document.
> 
> Wait...I may have just solved my own problem.  Would it work to simply name
> the files with a ".doc" extension...but still treat them as a plain file?
> 
> 
> 
> 


-- 
MrTrick

new topic     » goto parent     » topic index » view message » categorize

3. Re: Read/Write Microsoft Word documents

Oh, I forgot to mention that I intend to use euphoria to code on the pc, and
simply read the data that was "hot-synced".
Michelle Rogers
----- Original Message ----- 
From: "Michelle Rogers" <michellerogers at bellsouth.net>
To: <EUforum at topica.com>
Sent: Sunday, July 18, 2004 6:13 PM
Subject: Read/Write Microsoft Word documents


>
>
> Can anyone tell me how to have euphoria
>   1.  write files in Microsoft word format?  (or is this impossible)
> and the reverse of that..
>    2.  Read in data from a Microsoft word document, instead of plain text.
>
> One reason I'm asking is because i've found a small basic-derivitive
> language to code on Palm OS.  I want to be able to interact between the
palm
> (i have a class set of 25) and the main computer.  Basically, the students
> would all use Palms..and they would hot sync to the main (teacher)
> computer..which would automatically grade/correct their work and also
enter
> it into my grading program.
>
> Here's my problem...
>    just plain text files won't "hot sync"....i can "hot sync" Word To Go
> documents from the palm to the pc.  The pc reads them in as a word
document.
> On the other hand, I can send a word document from the pc to the palm, and
> the palm reads it in as a "word to go" document.
>
> Wait...I may have just solved my own problem.  Would it work to simply
name
> the files with a ".doc" extension...but still treat them as a plain file?
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: Read/Write Microsoft Word documents

Michelle Rogers wrote:
> 
> Oh, I forgot to mention that I intend to use euphoria to code on the pc, and
> simply read the data that was "hot-synced".
> Michelle Rogers
Michelle,

If you really want to find out what makes up a true .doc file, you can 
find the file layout at www.wotsit.org.

Jonas

new topic     » goto parent     » topic index » view message » categorize

5. Re: Read/Write Microsoft Word documents

Michelle Rogers wrote:
> 
> Can anyone tell me how to have euphoria
>   1.  write files in Microsoft word format?  (or is this impossible)
> and the reverse of that..
>    2.  Read in data from a Microsoft word document, instead of plain text.
> 

You can do this with EuCOM (search the archive for COM).  There are 
examples included on how to do this with Excel and Access that come with
the library.  It's basically like you're working with VBA (although a 
bit more involved, since you have to do more housekeeping).

You'll need to use tbrowse (included) to generate a wrapper for the Word
TypeLibrary, and use that to interface with Word.  Take a look, and let 
me know when you have questions.  If need be, I could knock up a quick
demo for you.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

6. Re: Read/Write Microsoft Word documents

Michelle Rogers wrote:
> 
> Can anyone tell me how to have euphoria
>   1.  write files in Microsoft word format?  (or is this impossible)
> and the reverse of that..
>    2.  Read in data from a Microsoft word document, instead of plain text.
> 
> One reason I'm asking is because i've found a small basic-derivitive
> language to code on Palm OS.  I want to be able to interact between the palm
> (i have a class set of 25) and the main computer.  Basically, the students
> would all use Palms..and they would hot sync to the main (teacher)
> computer..which would automatically grade/correct their work and also enter
> it into my grading program.
> 
> Here's my problem...
>    just plain text files won't "hot sync"....i can "hot sync" Word To Go
> documents from the palm to the pc.  The pc reads them in as a word document.
> On the other hand, I can send a word document from the pc to the palm, and
> the palm reads it in as a "word to go" document.

I doubt that your language running on the palm itself will let you write 
"word" files. You need to find what file mechanism it suppports, such as palm
doc
format. 


--"ask about our layaway plan".
--

new topic     » goto parent     » topic index » view message » categorize

7. Re: Read/Write Microsoft Word documents

Well there is "Documents to Go" already, that's a portable
Office-compatible system.

On Wed, 21 Jul 2004 22:33:55 -0700, Michael Raley
<guest at rapideuphoria.com> wrote:
> 
> posted by: Michael Raley <thinkways at yahoo.com>
> 
> Michelle Rogers wrote:
> >
> > Can anyone tell me how to have euphoria
> >   1.  write files in Microsoft word format?  (or is this impossible)
> > and the reverse of that..
> >    2.  Read in data from a Microsoft word document, instead of plain text.
> >
> > One reason I'm asking is because i've found a small basic-derivitive
> > language to code on Palm OS.  I want to be able to interact between the palm
> > (i have a class set of 25) and the main computer.  Basically, the students
> > would all use Palms..and they would hot sync to the main (teacher)
> > computer..which would automatically grade/correct their work and also enter
> > it into my grading program.
> >
> > Here's my problem...
> >    just plain text files won't "hot sync"....i can "hot sync" Word To Go
> > documents from the palm to the pc.  The pc reads them in as a word document.
> > On the other hand, I can send a word document from the pc to the palm, and
> > the palm reads it in as a "word to go" document.
> 
> I doubt that your language running on the palm itself will let you write
> "word" files. You need to find what file mechanism it suppports, such as palm
> doc
> format.
> 
> --"ask about our layaway plan".
> --
> 
> 
> 
> 
> 


-- 
MrTrick

new topic     » goto parent     » topic index » view message » categorize

8. Re: Read/Write Microsoft Word documents

Michael Raley wrote:
> 
> Michelle Rogers wrote:

> > Here's my problem...
> >    just plain text files won't "hot sync"....i can "hot sync" Word To Go
> > documents from the palm to the pc.  The pc reads them in as a word document.
> > On the other hand, I can send a word document from the pc to the palm, and
> > the palm reads it in as a "word to go" document.
> 
> I doubt that your language running on the palm itself will let you write 
> "word" files. You need to find what file mechanism it suppports, such as palm
> doc
> format. 

She mentioned 'word to go'. That is a 3P program that allows for the creation
and editing of Word documents on the Palm.

-- 
Craig

new topic     » goto parent     » topic index » view message » categorize

9. Re: Read/Write Microsoft Word documents

Craig Welch wrote:
> 
> Michael Raley wrote:
<snip> 
> She mentioned 'word to go'. That is a 3P program that allows for the creation
> and editing
> of Word documents on the Palm. 
> 
> -- 
> Craig
> 
Yes but that was not the first part of what she asked. I

> One reason I'm asking is because i've found a small basic-derivitive
> language to code on Palm OS. 



--"ask about our layaway plan".
--

new topic     » goto parent     » topic index » view message » categorize

10. Re: Read/Write Microsoft Word documents

Michelle,

Try just renaming your .txt file to .doc, then attempt to hot sync the
document across.
Success? Failure?
-- 
MrTrick
-------------------------------------------------------------------------------------
magnae clunes mihi placent, nec possum de hac re mentiri.

new topic     » goto parent     » topic index » view message » categorize

11. Re: Read/Write Microsoft Word documents

Craig Welch wrote:
> 
> Michael Raley wrote:
<snip> 
> She mentioned 'word to go'. That is a 3P program that allows for the creation
> and editing
> of Word documents on the Palm. 
> 
> -- 
> Craig
> 
Yes but that was not the first part of what she asked for. It was this

" One reason I'm asking is because i've found a small basic-derivitive
 language to code on Palm OS. ". 

That would indicate she wants a program to run on the palm to quiz the 
students and create an output file to be synched. 

The basic program may just creatie a palm doc format, such as described for
NS Basic, below;

NS Basic for Palm allows you to create your own databases directly within a
program. A database is a collection of records that you can read by record id or
sequentially. The format of each record is up to you: a record is a series of
values of numbers, string, dates and other data type. Your program is responsible
for the format of the records.
The databases that NS Basic for Palm creates are standard Palm databases. The
backup bit is set, so they are automatically copied to the Archive folder on your
Desktop during a Hotsync.
You can copy databases to the Palm by using the Install option of the Palm
Desktop, then use NS Basic for Palm to read and write the files.
On the desktop, a Visual Basic program can open the copy of the file in the
Archive folder.
More advanced control of files on the Palm from the desktop is possible using
the SyncManager, documented in "Developing Palm OS Conduits", from Palm Inc. The
SyncManager includes a number of calls that allow you to read and write databases
and records on the Palm unit. Using these calls from a desktop Visual Basic or C
program, you can create your own conduits to read, update and write out databases
used by NS Basic for Palm.


--"ask about our layaway plan".
--

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu