|
 |
aspx_beginners thread: printing from a link
Message #1 by "Brian Dimarucot" <adimarucot@s...> on Thu, 21 Mar 2002 00:25:44
|
|
Greetings Everyone,
Im kinda new in terms of the .Net
experience and I'm asking for help.
I would like to print out the contents
of a certain webpage by simply clicking
on a link. How should I go upon doing
that? I cant seem to find sample codes
on what I intend to do, so can someone
give me a hand.. Any help is greatly
appreciated. Thanks.
--Brian
Message #2 by Medwards2001@a... on Thu, 21 Mar 2002 00:30:42 EST
|
|
The Best way I know find codes is:
If u have Microsoft front-page Click on File, New, Web, Choose import Web
wizard.
In The Location dialog box type the URL (the address of the web u want to
copy). Click next-leave this screen the way it is don't change anything.
This process will copy the whole web site to your system and store it in
front page, here u can rename it and edit anything or add and delete stuff.
if u don't have front page give Mike a call at xxx-xxx-xxxx i can help u
good luck
Message #3 by ADimarucot@s... on Thu, 21 Mar 2002 13:46:19 +0800
|
|
thanks Edward.
But what i basically want to do is create a web application
in visual studio.net. And I want to have an ASP.net page
in which a link could be clicked to print out that specific page.
Is this possible?
Medwards2001@a... on 03/21/2002 12:30:42 AM
Please respond to "aspx_beginners" <aspx_beginners@p...>
To: "aspx_beginners" <aspx_beginners@p...>
cc:
Subject: [aspx_beginners] Re: printing from a link
The Best way I know find codes is:
If u have Microsoft front-page Click on File, New, Web, Choose import Web
wizard.
In The Location dialog box type the URL (the address of the web u want to
copy). Click next-leave this screen the way it is don't change anything.
This process will copy the whole web site to your system and store it in
front page, here u can rename it and edit anything or add and delete stuff.
if u don't have front page give Mike a call at xxx-xxx-xxxx i can help u
good luck
Message #4 by Colin.Montgomery@C... on Thu, 21 Mar 2002 15:54:41 -0000
|
|
i'm incredibly new to ASP.Net, but reckon it's no different to traditional
ASP. I.e. you don't use ASP... Look into doing it with client-side
Javascript: window.print()
Of course ASP.Net may have a class which will reformat a page for printing
and resend it with an onLoad="window.print()" command, but I haven't heard
of one.
HTH,
Col
-----Original Message-----
From: ADimarucot@s... [mailto:ADimarucot@s...]
Sent: 21 March 2002 05:46
To: aspx_beginners
Subject: [aspx_beginners] Re: printing from a link
thanks Edward.
But what i basically want to do is create a web application
in visual studio.net. And I want to have an ASP.net page
in which a link could be clicked to print out that specific page.
Is this possible?
Medwards2001@a... on 03/21/2002 12:30:42 AM
Please respond to "aspx_beginners" <aspx_beginners@p...>
To: "aspx_beginners" <aspx_beginners@p...>
cc:
Subject: [aspx_beginners] Re: printing from a link
The Best way I know find codes is:
If u have Microsoft front-page Click on File, New, Web, Choose import Web
wizard.
In The Location dialog box type the URL (the address of the web u want to
copy). Click next-leave this screen the way it is don't change anything.
This process will copy the whole web site to your system and store it in
front page, here u can rename it and edit anything or add and delete stuff.
if u don't have front page give Mike a call at xxx-xxx-xxxx i can help u
good luck
*******
This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the
intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are
not the intended recipient you must not copy this message or attachment or disclose the contents to any other person.
For further information about Clifford Chance please see our website at http://www.cliffordchance.com or refer to any Clifford
Chance office.
Message #5 by "Cliff Schneide" <Cliff_Schneide@n...> on Thu, 21 Mar 2002 11:29:40 -0500
|
|
Hi,
Here is the info on printing...
The print classes are under
Namespace System.Drawing.Printing
or the total infor for printing a
document is
Public Class PrintDocument Inherits
Component
Check it out...
Cliff Schneide
Web Developer
Computer Aid Inc.
Colin.Montgomery@C... on 03/21/2002 10:54:41 AM
Please respond to "aspx_beginners" <aspx_beginners@p...>
To: "aspx_beginners" <aspx_beginners@p...>
cc: (bcc: Cliff Schneide/CAICORP)
Subject: [aspx_beginners] Re: printing from a link
i'm incredibly new to ASP.Net, but reckon it's no different to traditional
ASP. I.e. you don't use ASP... Look into doing it with client-side
Javascript: window.print()
Of course ASP.Net may have a class which will reformat a page for printing
and resend it with an onLoad="window.print()" command, but I haven't heard
of one.
HTH,
Col
-----Original Message-----
From: ADimarucot@s... [mailto:ADimarucot@s...]
Sent: 21 March 2002 05:46
To: aspx_beginners
Subject: [aspx_beginners] Re: printing from a link
thanks Edward.
But what i basically want to do is create a web application
in visual studio.net. And I want to have an ASP.net page
in which a link could be clicked to print out that specific page.
Is this possible?
Medwards2001@a... on 03/21/2002 12:30:42 AM
Please respond to "aspx_beginners" <aspx_beginners@p...>
To: "aspx_beginners" <aspx_beginners@p...>
cc:
Subject: [aspx_beginners] Re: printing from a link
The Best way I know find codes is:
If u have Microsoft front-page Click on File, New, Web, Choose import Web
wizard.
In The Location dialog box type the URL (the address of the web u want to
copy). Click next-leave this screen the way it is don't change anything.
This process will copy the whole web site to your system and store it in
front page, here u can rename it and edit anything or add and delete stuff.
if u don't have front page give Mike a call at xxx-xxx-xxxx i can help u
good luck
*******
This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure. If you are not the intended recipient,
please telephone or email the sender and delete this message and any attachment
from your system. If you are not the intended recipient you must not copy this
message or attachment or disclose the contents to any other person.
For further information about Clifford Chance please see our website at
http://www.cliffordchance.com or refer to any Clifford Chance office.
Message #6 by Elissa Setarehshenas <elissasetareh@y...> on Thu, 21 Mar 2002 08:52:54 -0800 (PST)
|
|
Colin
Here's how you can print the screen
in the aspx page
<asp:button id="btnPrint"
Runat="server"BorderColor="Black" Text="Print">
</asp:button>
in the properties of the btnPrint clicked event is
btnPrintClicked
on the code behind page
private void btnPrintClicked(object sender,
System.EventArgs e)
{
RegisterStartupScript("printscript","\r\n<script>window.print();</script>");
}
Hope this helps,
Elissa
--- Colin.Montgomery@C... wrote:
> i'm incredibly new to ASP.Net, but reckon it's no
> different to traditional
> ASP. I.e. you don't use ASP... Look into doing it
> with client-side
> Javascript: window.print()
>
> Of course ASP.Net may have a class which will
> reformat a page for printing
> and resend it with an onLoad="window.print()"
> command, but I haven't heard
> of one.
>
> HTH,
> Col
>
> -----Original Message-----
> From: ADimarucot@s...
> [mailto:ADimarucot@s...]
> Sent: 21 March 2002 05:46
> To: aspx_beginners
> Subject: [aspx_beginners] Re: printing from a link
>
>
>
> thanks Edward.
> But what i basically want to do is create a web
> application
> in visual studio.net. And I want to have an ASP.net
> page
> in which a link could be clicked to print out that
> specific page.
> Is this possible?
>
>
>
>
>
> Medwards2001@a... on 03/21/2002 12:30:42 AM
>
> Please respond to "aspx_beginners"
> <aspx_beginners@p...>
>
> To: "aspx_beginners" <aspx_beginners@p...>
> cc:
>
> Subject: [aspx_beginners] Re: printing from a link
>
>
> The Best way I know find codes is:
> If u have Microsoft front-page Click on File, New,
> Web, Choose import Web
> wizard.
>
> In The Location dialog box type the URL (the address
> of the web u want to
> copy). Click next-leave this screen the way it is
> don't change anything.
> This process will copy the whole web site to your
> system and store it in
> front page, here u can rename it and edit anything
> or add and delete stuff.
>
> if u don't have front page give Mike a call at
> xxx-xxx-xxxx i can help u
> good luck
>
>
>
>
>
>
>
>
>
>
>
>
> *******
>
> This message and any attachment are confidential and
> may be privileged or otherwise protected from
> disclosure. If you are not the intended recipient,
> please telephone or email the sender and delete this
> message and any attachment from your system. If you
> are not the intended recipient you must not copy
> this message or attachment or disclose the contents
> to any other person.
>
> For further information about Clifford Chance please
> see our website at http://www.cliffordchance.com or
> refer to any Clifford Chance office.
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
Message #7 by "McCloy, Russell" <Russell.McCloy@B...> on Fri, 22 Mar 2002 07:48:21 +1100
|
|
In the past I have used javascript to print pages:
print();
opens the ie5 print dialog box.
Im sure there are print commands in the .NET framework, I just havent looked
yet.
thanks
RuSs
-----Original Message-----
From: ADimarucot@s... [mailto:ADimarucot@s...]
Sent: Thursday, 21 March 2002 4:46 PM
To: aspx_beginners
Subject: [aspx_beginners] Re: printing from a link
thanks Edward.
But what i basically want to do is create a web application
in visual studio.net. And I want to have an ASP.net page
in which a link could be clicked to print out that specific page.
Is this possible?
Medwards2001@a... on 03/21/2002 12:30:42 AM
Please respond to "aspx_beginners" <aspx_beginners@p...>
To: "aspx_beginners" <aspx_beginners@p...>
cc:
Subject: [aspx_beginners] Re: printing from a link
The Best way I know find codes is:
If u have Microsoft front-page Click on File, New, Web, Choose import Web
wizard.
In The Location dialog box type the URL (the address of the web u want to
copy). Click next-leave this screen the way it is don't change anything.
This process will copy the whole web site to your system and store it in
front page, here u can rename it and edit anything or add and delete stuff.
if u don't have front page give Mike a call at xxx-xxx-xxxx i can help u
good luck
Message #8 by "McCloy, Russell" <Russell.McCloy@B...> on Fri, 22 Mar 2002 08:26:33 +1100
|
|
I agree
-----Original Message-----
From: Colin.Montgomery@C...
[mailto:Colin.Montgomery@C...]
Sent: Friday, 22 March 2002 2:55 AM
To: aspx_beginners
Subject: [aspx_beginners] Re: printing from a link
i'm incredibly new to ASP.Net, but reckon it's no different to traditional
ASP. I.e. you don't use ASP... Look into doing it with client-side
Javascript: window.print()
Of course ASP.Net may have a class which will reformat a page for printing
and resend it with an onLoad="window.print()" command, but I haven't heard
of one.
HTH,
Col
-----Original Message-----
From: ADimarucot@s... [mailto:ADimarucot@s...]
Sent: 21 March 2002 05:46
To: aspx_beginners
Subject: [aspx_beginners] Re: printing from a link
thanks Edward.
But what i basically want to do is create a web application
in visual studio.net. And I want to have an ASP.net page
in which a link could be clicked to print out that specific page.
Is this possible?
Medwards2001@a... on 03/21/2002 12:30:42 AM
Please respond to "aspx_beginners" <aspx_beginners@p...>
To: "aspx_beginners" <aspx_beginners@p...>
cc:
Subject: [aspx_beginners] Re: printing from a link
The Best way I know find codes is:
If u have Microsoft front-page Click on File, New, Web, Choose import Web
wizard.
In The Location dialog box type the URL (the address of the web u want to
copy). Click next-leave this screen the way it is don't change anything.
This process will copy the whole web site to your system and store it in
front page, here u can rename it and edit anything or add and delete stuff.
if u don't have front page give Mike a call at xxx-xxx-xxxx i can help u
good luck
*******
This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure. If you are not the intended recipient,
please telephone or email the sender and delete this message and any
attachment from your system. If you are not the intended recipient you must
not copy this message or attachment or disclose the contents to any other
person.
For further information about Clifford Chance please see our website at
http://www.cliffordchance.com or refer to any Clifford Chance office.
|
|
 |