I have a page where somebody enters some information. On submitting the
page, I want to take the info, format it 'pretty' and print the page
automatically for the user.
Can anybody point me somewhere to look on how to do this?
Thanks - Jeff. 6 1016
Well you can't automatically print at the clients printer as you have no
rights to do that - but you could present a formatted PDF for them to print
if they choose to do that.
Regards
John Timney (MVP) http://www.johntimney.com http://www.johntimney.com/blog
"Mufasa" <jb@nowhere.comwrote in message
news:uD**************@TK2MSFTNGP04.phx.gbl...
>I have a page where somebody enters some information. On submitting the page, I want to take the info, format it 'pretty' and print the page automatically for the user.
Can anybody point me somewhere to look on how to do this?
Thanks - Jeff.
How do web pages do it where they have a button that says 'Print this page'
?
"John Timney (MVP)" <xy******@timney.eclipse.co.ukwrote in message
news:Dp******************************@eclipse.net. uk...
Well you can't automatically print at the clients printer as you have no
rights to do that - but you could present a formatted PDF for them to
print if they choose to do that.
Regards
John Timney (MVP) http://www.johntimney.com http://www.johntimney.com/blog
"Mufasa" <jb@nowhere.comwrote in message
news:uD**************@TK2MSFTNGP04.phx.gbl...
>>I have a page where somebody enters some information. On submitting the page, I want to take the info, format it 'pretty' and print the page automatically for the user.
Can anybody point me somewhere to look on how to do this?
Thanks - Jeff.
With that - here's another question -
If I have a web page that somebody is going to print, how can I put page
breaks in it to force the print to eject the page?
I don't even know if I can embed a ^L on the page.
"John Timney (MVP)" <xy******@timney.eclipse.co.ukwrote in message
news:Dp******************************@eclipse.net. uk...
Well you can't automatically print at the clients printer as you have no
rights to do that - but you could present a formatted PDF for them to
print if they choose to do that.
Regards
John Timney (MVP) http://www.johntimney.com http://www.johntimney.com/blog
"Mufasa" <jb@nowhere.comwrote in message
news:uD**************@TK2MSFTNGP04.phx.gbl...
>>I have a page where somebody enters some information. On submitting the page, I want to take the info, format it 'pretty' and print the page automatically for the user.
Can anybody point me somewhere to look on how to do this?
Thanks - Jeff.
You can invoke hte printer dialogue with a single line fo javascript
<a href="javascript :window.print();">Print this page</a>
But to format the page correctly, you should read up on CSS print http://www.tufts.edu/webcentral/tutorials/printcss/
Regards
John Timney (MVP) http://www.johntimney.com http://www.johntimney.com/blog
"Mufasa" <jb@nowhere.comwrote in message
news:OZ**************@TK2MSFTNGP05.phx.gbl...
With that - here's another question -
If I have a web page that somebody is going to print, how can I put page
breaks in it to force the print to eject the page?
I don't even know if I can embed a ^L on the page.
"John Timney (MVP)" <xy******@timney.eclipse.co.ukwrote in message
news:Dp******************************@eclipse.net. uk...
>Well you can't automatically print at the clients printer as you have no rights to do that - but you could present a formatted PDF for them to print if they choose to do that.
Regards
John Timney (MVP) http://www.johntimney.com http://www.johntimney.com/blog
"Mufasa" <jb@nowhere.comwrote in message news:uD**************@TK2MSFTNGP04.phx.gbl...
>>>I have a page where somebody enters some information. On submitting the page, I want to take the info, format it 'pretty' and print the page automatically for the user.
Can anybody point me somewhere to look on how to do this?
Thanks - Jeff.
On Feb 21, 9:24*am, "John Timney \(MVP\)"
<xyz_j...@timney.eclipse.co.ukwrote:
You can invoke hte printer dialogue with a single line fo javascript
<a href="javascript:window.print();">Print this page</a>
But to format the page correctly, you should read up on CSS print
http://www.tufts.edu/webcentral/tutorials/printcss/
Regards
John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog
"Mufasa" <j...@nowhere.comwrote in message
news:OZ**************@TK2MSFTNGP05.phx.gbl...
With that - here's another question -
If I have a web page that somebody is going to print, how can I put page
breaks in it to force the print to eject the page?
I don't even know if I can embed a ^L on the page.
"John Timney (MVP)" <xyz_j...@timney.eclipse.co.ukwrote in message
news:Dp******************************@eclipse.net. uk...
Well you can't automatically print at the clients printer as you have no
rights to do that - but you could present a formatted PDF for them to
print if they choose to do that.
Regards
John Timney (MVP) http://www.johntimney.com http://www.johntimney.com/blog
"Mufasa" <j...@nowhere.comwrote in message news:uD**************@TK2MSFTNGP04.phx.gbl... I have a page where somebody enters some information. On submitting the page, I want to take the info, format it 'pretty' and print the page automatically for the user.
>Can anybody point me somewhere to look on how to do this?
>Thanks - Jeff.- Hide quoted text -
- Show quoted text -
you may want to try <DIV style="page-break-after:always"></DIVas a
page break...
... more at http://www.siccolo.com/articles.asp ...
It has nothing to do about ASP.NET nor server side code. It's accomplished
by many websites in purely JavaScript way:
window.print();
--
Tanzim Saqib
B: http://weblogs.asp.net/TanzimSaqib
W: http://www.TanzimSaqib.com
"Mufasa" <jb@nowhere.comwrote in message
news:up**************@TK2MSFTNGP03.phx.gbl...
How do web pages do it where they have a button that says 'Print this
page' ?
"John Timney (MVP)" <xy******@timney.eclipse.co.ukwrote in message
news:Dp******************************@eclipse.net. uk...
>Well you can't automatically print at the clients printer as you have no rights to do that - but you could present a formatted PDF for them to print if they choose to do that.
Regards
John Timney (MVP) http://www.johntimney.com http://www.johntimney.com/blog
"Mufasa" <jb@nowhere.comwrote in message news:uD**************@TK2MSFTNGP04.phx.gbl...
>>>I have a page where somebody enters some information. On submitting the page, I want to take the info, format it 'pretty' and print the page automatically for the user.
Can anybody point me somewhere to look on how to do this?
Thanks - Jeff.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jody Gelowitz |
last post by:
I am having a problem with printing selected pages. Actually, the problem
isn't with printing selected pages as it is more to do with having blank
pages print for those pages that have not been...
|
by: Patrick De Ridder |
last post by:
How can I turn what I want to print 90 degrees using the logic below?
Please tell me the code with which to make the modification.
Many thanks,
Patrick.
using System.ComponentModel;
using...
|
by: Nigel |
last post by:
I successfully create a .NET Component (Visual Basic .NET) that would
print, unfortunately when used within a web browser it appears that .NET
security doesn't allow you to run code that interacts...
|
by: Rob T |
last post by:
I have a small VB program that has a printing module...very simple....and
works great. However, If I try to print to a generic printer, I get the
following error: "The data area passed to a...
|
by: hamil |
last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview
control, the PageSetup control, and the Print dialog control. The code
attached is a concatination of two examples taken out...
|
by: Sukh |
last post by:
Hi
I am stuck with a problem Can anyone help me out from this...
I am printing a report on pre-printed continue paper using dot-matrix
printer using vb.net.
Data is printing on all the...
|
by: Siv |
last post by:
Hi,
I am getting into printing with VB.NET 2005 and want to implement the usual
capability that a user can select a selection of pages. I have a report
that is generated by my application that if...
|
by: Neo Geshel |
last post by:
Greetings.
BACKGROUND:
My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are
delivered as application/xhtml+xml for all non-MS web clients, and as
text/xml for all MS web...
|
by: dotnet2005 |
last post by:
Hi Toall ,
I want to explain you clearly ,
I am having some panels having some controls
CheckBox,ComboBox,Datagridview,Hyperlink,label,Listbox,Picturebox,RadioButt
on ,Textbox)...
|
by: Brett |
last post by:
I have an ASP.NET page that displays work orders in a GridView. In that
GridView is a checkbox column. When the user clicks a "Print" button, I
create a report, using the .NET Framework printing...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
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,...
|
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...
|
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...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |