Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: File Stream problem


Message #1 by "Peng Yee Nar" <agapepn@s...> on Tue, 21 May 2002 14:33:37
Hi,

I am using the FileStreamObject to write a document file to the server 
hard disk.

When I need to bold a sentence, i did,

FileStream.writeline "<b>" & name & "</b>"

BUT it does not bold the line. Instead it writes out the whole sentence.
PLEASE HELP because I need to format the data, i.e display in a table form 
or to bold wordings in the document file.

THANSK!!!
Message #2 by "=?iso-8859-1?q?Laeg=20Ent.?=" <laeg_enterprises@y...> on Wed, 22 May 2002 10:09:42 +0100 (BST)
FileStream will create a text file which will only
support upper case or lower case formatting. So I
would suggest that you perhaps write the info to a db
and format it when you retrieve it if you are
displaying it on the web. If you are not then you
should write it to a Word Document. A clear example of
this is available here

http://www.aspalliance.com/steven.swafford/articles/word_doc.asp

Laeg 
 
--- Peng Yee Nar <agapepn@s...> wrote: > Hi,
> 
> I am using the FileStreamObject to write a document
> file to the server 
> hard disk.
> 
> When I need to bold a sentence, i did,
> 
> FileStream.writeline "<b>" & name & "</b>"
> 
> BUT it does not bold the line. Instead it writes out
> the whole sentence.
> PLEASE HELP because I need to format the data, i.e
> display in a table form 
> or to bold wordings in the document file.
> 
> THANSK!!! 

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
Message #3 by "=?iso-8859-1?q?Laeg=20Ent.?=" <laeg_enterprises@y...> on Wed, 22 May 2002 10:39:49 +0100 (BST)
In case I misunderstood you and you want to create a
word document on the server not just display one on
the web then you need to run the following code using
an admin account

Set oWebService = GetObject("IIS://LocalHost/W3svc")
oWebService.Put "AspAllowOutOfProcComponents", True
oWebService.SetInfo

Laeg

 --- "Laeg Ent." <laeg_enterprises@y...> wrote:
> FileStream will create a text file which will only
> support upper case or lower case formatting. So I
> would suggest that you perhaps write the info to a
> db
> and format it when you retrieve it if you are
> displaying it on the web. If you are not then you
> should write it to a Word Document. A clear example
> of
> this is available here
> 
>
http://www.aspalliance.com/steven.swafford/articles/word_doc.asp
> 
> Laeg 
>  
> --- Peng Yee Nar <agapepn@s...> wrote: >
> Hi,
> > 
> > I am using the FileStreamObject to write a
> document
> > file to the server 
> > hard disk.
> > 
> > When I need to bold a sentence, i did,
> > 
> > FileStream.writeline "<b>" & name & "</b>"
> > 
> > BUT it does not bold the line. Instead it writes
> out
> > the whole sentence.
> > PLEASE HELP because I need to format the data, i.e
> > display in a table form 
> > or to bold wordings in the document file.
> > 
> > THANSK!!! 
> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

  Return to Index