RE: lingo-l Writing RTF and HTML files?
I'm wondering if there is a way or of any xtras that will allow you to write Rich Text Format files and HTML files. well an HTML file is just text, so there is no reason why you could not use FileIO to write an HTML file. Al Hospers CamberSoft, Inc. alatcambersoftdotcom http://www.cambersoft.com A famous linguist once said: "There is no language wherein a double positive can form a negative." YEAH, RIGHT [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Writing RTF and HTML files?
Bill, If you are using images then HTML would be better suited. You can, however, include images in a RTF file. Here is a snip from the Microsoft web page I listed earlier: snip Pictures An RTF file can include pictures created with other applications. These pictures can be in hexadecimal (the default) or binary format. Pictures are destinations, and begin with the \pict control word. The \pict keyword is preceded by \*\shppict destination control keyword as described in the following example. A picture destination has the following syntax: /snip It is not easy and I have not done this. But if you have the image one of the above mentioned formats you can put it inside the RTF. Though, I would start with a HTML file first and then use RTFs only when an HTML file didn't work and I can't see when that would happen. Timothy R. Symons Interactive Media Manager Curtis, Inc. http://www.curtisinc.com/ -Original Message- From: Bill Numerick [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 3:14 PM To: [EMAIL PROTECTED] Subject: RE: lingo-l Writing RTF and HTML files? snip I've written simple RTFs using FileIO xtra. I stored everything in a TEXT member and then wrote it to a file. It was really useful for writing files that would print nicely, without having to buy an xtra. /snip Thanks for the responces guys. Here's another question/problem. Regarding writing RTF and HTML filesThey have images...The RTF files need to have the images embeded in them...i'm not aware of how to do that with FileIO in fact i'm pretty sure you can't?...well the html i can see but not the RTF's anyone have any suggestions? -Bill _ Get your FREE download of MSN Explorer at http://explorer.msn.com [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Writing RTF and HTML files?
snip Though, I would start with a HTML file first and then use RTFs only when an HTML file didn't work and I can't see when that would happen. /snip Thanks again for the fast response. Here's what i'm planning on doingHTML is the best way to go for my display purposes in director for sure because of all the fun formating options it has and well its something i understand :), however the reason i need RTF(besides how portable it is) is for when a user saves a file to their hard driveif it was html i'd have to save a folder with images with it and even then what if the user moves the single file? That'd break all the images. Here's a thought as far as RTF's go, i haven't read what's on that link yet so what i'm thinking could be way off :). Because of the fact that i'm going to need to open and/or create these RTF files, i stored the images in a "blob" so to speak (the raw format or binary?) would I be able to use FileIO to write the files? Thanks for the comments and getting my mind wrapped around it :). - Bill _ Get your FREE download of MSN Explorer at http://explorer.msn.com [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Writing RTF and HTML files?
If you stored them as HEX then you could write them out as text files and not have to worry about any binary files. But if you are familiar with binary then that would also work. In general, if you have the files as blobs of HEX or binary then yes your idea would work. Timothy R. Symons Interactive Media Manager Curtis, Inc. http://www.curtisinc.com/ -Original Message- From: Bill Numerick [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 4:15 PM To: [EMAIL PROTECTED] Subject: RE: lingo-l Writing RTF and HTML files? snip Though, I would start with a HTML file first and then use RTFs only when an HTML file didn't work and I can't see when that would happen. /snip Thanks again for the fast response. Here's what i'm planning on doingHTML is the best way to go for my display purposes in director for sure because of all the fun formating options it has and well its something i understand :), however the reason i need RTF(besides how portable it is) is for when a user saves a file to their hard driveif it was html i'd have to save a folder with images with it and even then what if the user moves the single file? That'd break all the images. Here's a thought as far as RTF's go, i haven't read what's on that link yet so what i'm thinking could be way off :). Because of the fact that i'm going to need to open and/or create these RTF files, i stored the images in a "blob" so to speak (the raw format or binary?) would I be able to use FileIO to write the files? Thanks for the comments and getting my mind wrapped around it :). - Bill _ Get your FREE download of MSN Explorer at http://explorer.msn.com [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Writing RTF and HTML files?
If you stored them as HEX then you could write them out as text files and not have to worry about any binary files. But if you are familiar with binary then that would also work. In general, if you have the files as blobs of HEX or binary then yes your idea would work. Hi guys, If you need to read or write binary files then the BinaryIO Xtra from UpdateStage may be what you need. BinaryIO was designed to read, write and edit binary files on the Mac and the PC. As you know, Director's built-in FileIO Xtra was designed to work with text files. You cannot use it to successfully read binary files because data in the binary file will look like formatting characters to FileIO. BinaryIO contains many methods for reading and converting data values. These methods aid in creating or reading media files to conform to a file specification. BinaryIO can handle Mac, as well as PC files, with ease. There are several methods that enable Mac-specific operations, such as writing to the data or resource fork and setting Finder attributes. Price: $149.00 Platforms: 32-bit Windows,Win 31,Mac Director versions supported: 5,6,7,8 For more information or to purchase BinaryIO go to http://www.updatestage.com/xtras/xtrahome.html Cheers, Al Hospers Marketing Associate UpdateStage alatcambersoftdotcom http://www.updateStage.com [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Writing RTF and HTML files?
If you choose binary, you'll need to be careful with fileio xtra. It will stop at the first zero byte it finds (mistaking for eof char). A workaround is to write out the binary chars one at a time via writeChar (slow!). A better method is to use binaryio xtra at http://www.updatestage.com. I was just about to look into some sort of formated text file output, when I saw this thread. Good timing! I'll be interested in how it works out. Cole If you stored them as HEX then you could write them out as text files and not have to worry about any binary files. But if you are familiar with binary then that would also work. In general, if you have the files as blobs of HEX or binary then yes your idea would work. Timothy R. Symons Interactive Media Manager Curtis, Inc. http://www.curtisinc.com/ -- Cole Tierney Laureate Learning Systems 802.655.4755 x17 http://www.LaureateLearning.com [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]