re: saving styled text?

2002-09-27 Thread miscdas

eric engle wrote: 

2) I would prefer to save the file not as an .html but
as a .doc or at least .rtf 

I know that the html file can be read by current
versiosn of word - but have you ever looked at what
word does when it generates html files? Simple 15 k
files have turned into 50-90 monstrosities (I am not
joking) when exporting a doc from HTML to word. I am
_hoping that the reverse is not true... but I could
easily imagine M.$. bloating imported files (so they
can later sell a proprietary debloating program). 

So this is why I would prefer to save as a .doc or
.rtf rather than html. 


Eric, 

MicroShaft Word also creates highly bloated RTF files, so this may not be 
much better thatn the HTML solution. Try creating an RTF in another program, 
open it in Word, then save it. Then check the file size. This is a result of 
the RTF "standard" being so loosely defined that MS RTF is actually a 
superset of most other RTF definitions. However, MS includes some features 
that many other RTF generators lack, such as full paragraph justification. 
Therefore, beware of lost formatting when opening in another program an RTF 
file created in Word. 

Also, save the RTF file as an HTML file and compare the files sizes. 

miscdas
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: saving styled text?

2002-09-26 Thread eric engle

Hi Klaus!

Your solution does help somewhat and I thank you and
am planning to spend tonight working on applying your
suggestion.

However it is not a complete solution. 

Let me explain my problem more exactly: I wish to be
able to do the following

1) Copy text from a field in metaCard and paste that
text into a .doc or at least .rtf - and have the text
retain its file formating.
I.e. I need to get the data onto and off of the clip
board all the while retaining its formatting.

2) I would prefer to save the file not as an .html but
as a .doc or at least .rtf 

I know that the html file can be read by current
versiosn of word - but have you ever looked at what
word does when it generates html files? Simple 15 k
files have turned into 50-90 monstrosities (I am not
joking) when exporting a doc from HTML to word. I am
_hoping that the reverse is not true... but I could
easily imagine M.$. bloating imported files (so they
can later sell a proprietary debloating program).

So this is why I would prefer to save as a .doc or
.rtf rather than html.

Anyway being able to copy and paste from MC to word
(or any other text editor) is almost as important as
being able to save the documents.

I thank you for your help! If I can return the favor
in any way (research, translation, editing, writing)
just ask!

Your solution is attached below in the interest of
future persons also searching for this information

Export

on mouseup

put the htmltext of fld "fld with textstyle to be
saved" into url"file:savedstyle.htm"

end mouseup


Import

on mouseup

set the htmltext of fld "fld with textstyle to be
saved" to url"file:savedstyle.htm"

end mouseup

keywords: import export styled text .rtf

=
My Web sites:
http://www.lexnet.bravepages.com/ind.htm (law)
http://www.geocities.com/newtontechspecs (Newton)

Help! I need to buy a copy of code warrior pro version 4 (i.e. with pascal) for x86 
work (nowhere on ebay germany)

__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: saving styled text?

2002-09-26 Thread Klaus Major

Hi Eric,

> how do I save styled text from a field to a file so
> that the text formatting is retained in the saved
> file?
>
> I can save plain ascii just fine - I would like to
> save its format as well however.
>
> I have tried running through the help stacks and faq
> and have not found a solution. Hints pointers or ideas
> are appreciated!

hmmm, my first (and only) thought is the htmltext-property ;-)

Like:

on mouseup
   put the htmltext of fld "fld with textstyle to be saved" into 
url"file:savedstyle.htm"
end mouseup

and back again with:

on mouseup
   set the htmltext of fld "fld with textstyle to be saved" to 
url"file:savedstyle.htm"
end mouseup


Hope this helps...

Regards

Klaus Major
[EMAIL PROTECTED]

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard