473,386 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

save or print string

I form an 'html' string interactively that can be output by `xx.html` as
'document.write(string)' which shows the html and the html source.
I can also see the string using `alert("string "+string);`
But how can I save that string or print that string?

db
Jul 23 '05 #1
5 1678
If you do a: document.write("string") you can print your page and also
to a file.

If you use Firefox, for example, you can select the string and ask to
see the code.
Select the display on your page, right click and do "view selection
source"
Then you can see your code.

Jul 23 '05 #2
Done.
Thanks!

db

"sbriet" <sb****@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
If you do a: document.write("string") you can print your page and also
to a file.

If you use Firefox, for example, you can select the string and ask to
see the code.
Select the display on your page, right click and do "view selection
source"
Then you can see your code.

Jul 23 '05 #3
eh
Hello occam

I'm intersted to know how to do that as well without user intervention.

I have an ASP.NET application that produces html strings which should
be wither emailed or printed. The email is easy. I cannot manage to do
printing without going through a file, which I prefer not to.

Thanks,
eh

occam wrote:
Done.
Thanks!

db

"sbriet" <sb****@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
If you do a: document.write("string") you can print your page and also to a file.

If you use Firefox, for example, you can select the string and ask to see the code.
Select the display on your page, right click and do "view selection
source"
Then you can see your code.


Jul 23 '05 #4
eh
Hello occam

I'm intersted to know how to do that as well without user intervention.

I have an ASP.NET application that produces html strings which should
be wither emailed or printed. The email is easy. I cannot manage to do
printing without going through a file, which I prefer not to.

Thanks,
eh

occam wrote:
Done.
Thanks!

db

"sbriet" <sb****@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
If you do a: document.write("string") you can print your page and also to a file.

If you use Firefox, for example, you can select the string and ask to see the code.
Select the display on your page, right click and do "view selection
source"
Then you can see your code.


Jul 23 '05 #5
eh
Hello occam

I'm intersted to know how to do that as well without user intervention.

I have an ASP.NET application that produces html strings which should
be wither emailed or printed. The email is easy. I cannot manage to do
printing without going through a file, which I prefer not to.

Thanks,
eh

occam wrote:
Done.
Thanks!

db

"sbriet" <sb****@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
If you do a: document.write("string") you can print your page and also to a file.

If you use Firefox, for example, you can select the string and ask to see the code.
Select the display on your page, right click and do "view selection
source"
Then you can see your code.


Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Steve | last post by:
How do you programatically save files that are attached to an email to a specified folder? It could be one file or multiple files attached to the email. Can it be done if Outlook Express is being...
3
by: needin4mation | last post by:
Hi, I have access 97. I can upgrade if I have to (but that will cost more money :)). If I want to read a row, parse that row, and then save the values to an HTML file, will VBA do that? Say I...
3
by: mo | last post by:
I have an application that uses Reporting Services. When the user chooses to print a report, they are taken to a window that allows them to fill in parameters for the report. They then click a...
5
by: peter | last post by:
Hello all, I'm looking for an advice. Example (one block in ascii file): $------------------------ NAME='ALFA' CODE='x' $------------------------
4
by: gjameson via AccessMonster.com | last post by:
I have a form that creates a new ticket. Click save on the form and the form closes and updates the form underneath. I would like to print a report from this form when I hit the save button all at...
0
by: lety28 | last post by:
I have a script "licence.cgi" write in python which generate text files and I would like that the user click on a button and he can download this file. _1er solution:_ I found in my research that...
2
by: WayneBurrows | last post by:
Can I save dynamically created data to a text file on the client's machine? Preferrably in a user named file through a save dialog box. Thanks Wayne
3
by: evenlater | last post by:
I have an Access application on a terminal server. Sometimes my users need to export reports to pdf, rtf or xls files and save them to their own client device hard drives. They can do that right...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.