Click here to Skip to main content
16,004,919 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to print specified contents in .NET 2.0? Pin
Sandeep Akhare11-Oct-07 1:09
Sandeep Akhare11-Oct-07 1:09 
GeneralRe: How to print specified contents in .NET 2.0? Pin
salon11-Oct-07 1:49
salon11-Oct-07 1:49 
GeneralRe: How to print specified contents in .NET 2.0? Pin
Sandeep Akhare11-Oct-07 1:53
Sandeep Akhare11-Oct-07 1:53 
GeneralRe: How to print specified contents in .NET 2.0? Pin
salon11-Oct-07 2:00
salon11-Oct-07 2:00 
GeneralRe: How to print specified contents in .NET 2.0? Pin
Sandeep Akhare11-Oct-07 2:19
Sandeep Akhare11-Oct-07 2:19 
AnswerRe: How to print specified contents in .NET 2.0? Pin
N a v a n e e t h11-Oct-07 2:19
N a v a n e e t h11-Oct-07 2:19 
GeneralRe: How to print specified contents in .NET 2.0? Pin
salon11-Oct-07 2:24
salon11-Oct-07 2:24 
GeneralRe: How to print specified contents in .NET 2.0? Pin
N a v a n e e t h11-Oct-07 2:31
N a v a n e e t h11-Oct-07 2:31 
bhavna816 wrote:
I want this through programming.I know we can print through javascript, but the whole page gets printed.


Then you could write your own print function which is not possible since your application is browser dependent. What is your website content ? Are you giving print option for all of your pages or any specific pages ?

One option you can do is, create a single print page and pass the page to be printed to this page. Give an internal request to the page using HttpWebRequest/Webclient. Write a powerful regular expression which finds all image tags from the response text. Replace those with empty string, and write the final string to your print page. And invoke javascript print option. D'Oh! | :doh:


Questiontotal and subtotal in datagrid Pin
Amit Agarrwal11-Oct-07 0:48
Amit Agarrwal11-Oct-07 0:48 
AnswerRe: total and subtotal in datagrid Pin
Spunky Coder11-Oct-07 1:12
Spunky Coder11-Oct-07 1:12 
AnswerRe: total and subtotal in datagrid Pin
Imran Khan Pathan11-Oct-07 1:26
Imran Khan Pathan11-Oct-07 1:26 
Questionhow write custom validation component? Pin
zeroonea11-Oct-07 0:41
zeroonea11-Oct-07 0:41 
AnswerRe: how write custom validation component? Pin
Sandeep Akhare11-Oct-07 1:18
Sandeep Akhare11-Oct-07 1:18 
GeneralRe: how write custom validation component? Pin
zeroonea11-Oct-07 3:42
zeroonea11-Oct-07 3:42 
GeneralRe: how write custom validation component? Pin
Sandeep Akhare11-Oct-07 19:48
Sandeep Akhare11-Oct-07 19:48 
GeneralRe: how write custom validation component? Pin
zeroonea12-Oct-07 19:05
zeroonea12-Oct-07 19:05 
AnswerRe: how write custom validation component? Pin
zeroonea13-Oct-07 21:58
zeroonea13-Oct-07 21:58 
Questioninsert the text in Image Button Pin
rockz...11-Oct-07 0:20
rockz...11-Oct-07 0:20 
AnswerRe: insert the text in Image Button Pin
Christian Graus11-Oct-07 0:27
protectorChristian Graus11-Oct-07 0:27 
QuestionHow i can view image from access data base Pin
Piyush Vardhan Singh11-Oct-07 0:14
Piyush Vardhan Singh11-Oct-07 0:14 
AnswerRe: How i can view image from access data base Pin
Christian Graus11-Oct-07 0:28
protectorChristian Graus11-Oct-07 0:28 
AnswerRe: How i can view image from access data base Pin
Sandeep Akhare11-Oct-07 1:38
Sandeep Akhare11-Oct-07 1:38 
Questiondynamically call the Master page Pin
Aavesh Agarwal11-Oct-07 0:09
Aavesh Agarwal11-Oct-07 0:09 
AnswerRe: dynamically call the Master page Pin
Christian Graus11-Oct-07 0:14
protectorChristian Graus11-Oct-07 0:14 
GeneralRe: dynamically call the Master page Pin
Aavesh Agarwal11-Oct-07 0:18
Aavesh Agarwal11-Oct-07 0:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.