.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Print page visual

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :WPF


sorry for this question in this topic bit i dont know about palce ,

in silverlight i use this code for print

PrintDialog pd = new PrintDialog();
      PrintDocument docToPrint = new PrintDocument();
      docToPrint.DocumentName = "Bank Name";
      docToPrint.PrintPage += (s, args) =>
          args.PageVisual = this.ListView1;

but in wpf we dont have ???.PageVisual

how can do it in wpf


View Complete Post

More Related Resource Links

Visual Studio closes itself by opening aspx-Page designer after Windows Update


Hey Guys,

I've a problem with my Visual Studio.

On the 13th of August 2010 i installed a Windows update on my vista sp2 pc. For this date my Visual Studio 2008 sp 1 always has closed itself by opening an aspx-page in designer view. There is no error message just closing the window. I restored a backup of my windows from the time before updating it and it helped, i could open aspx pages in the design view till the update has been installed again automatically after rebooting the pc. I can't disable windows updates, cause it's my pc at work and safety is very important. I hope you could help me out of this disaster.



Reporting services in 2008 r2 how to get a report in a print button click event in my c#.net page


how to  get a report in my c#.net page button lick event also steps to call a report from asp.net to reporting services


Thanks in advance

Master Pages: Master Your Site Design with Visual Inheritance and Page Templates


Master pages in ASP.NET 2.0 solve a problem many Web developers have been solving on their own with a variety of techniques for years - providing a single master template for an entire site. This article covers the details of master pages, discussing their usage and implementation and how they are a natural evolution of custom techniques developers are using today.

Fritz Onion

MSDN Magazine June 2004

Visual Studio 2010 Shows Blank Page during web development


I just upgraded a web project from VS2008 to VS2010 Ultimate (Windows7 64bit, IE8/Google Chrome. When I run the web project in the development server (by hitting F5) everything acts like it is supposed to except everything comes up blank. Even the directory structure page is blank, just an empty HTML open and close shell. I get no errors no indications of failure, nothing. When I try to use google chrome I get the same blank page no matter where I navigate to, even if I try to navigate to a non-existant location on the dev server. I know the code compiles and acts correctly because I can deploy it to our QA servers without issue. Any ideas? 

Visual Studio 2008: having trouble in opening any web page

hi alli am unable to run any web page in the browser that i design in visual studio..i didnt understand that what happened.As the visual studio was working fine and i can easily run my websites that i create in it but now i tried to run different pages in its internal browser,internet explorer,mozilla firefox but they give error(the error which we get when we are not connected to internet and try to open a url).Even i had tried to build a new website and run it but the problem is still..i cant figure it out thats why came here and posted.so can anyone help me out...

How to launch or load a page after log in from vb codebehind using visual web developer xprs 2010

 Ok, and hello to every one reading this; what I reakon should be a simple question for one of you code gurus out there. ok here is my code VB snippet that I pasted from my web app, and sorry if this is the wrong forum . anyway here goes, Partial Class login    Inherits System.Web.UI.Page    Protected Sub Login1_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs) Handles Login1.Authenticate        Try            If (Login1.UserName = "user1") And (Login1.Password = "password*") Then                MsgBox("Success")                 'need line of code here to launch main.aspx            else                MsgBox("Login Failed")            End If        Catch ex As Exception        End Try            End SubEnd Cl

have print friendly page, want to hide columns of gridview

using vb.net/asp.net 2005I have linkbuttons calling the javascript function at the bottom of this post to print out the contents of a div and this is working ok but theissue that i have is inside the div is a gridview that displays links and another text column (among other colums) and I would like tohide the links and the text column next to it using css.Has anyone done this?btw, here is the javascript print function# function printThisDiv() # { # try{ # var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; # sOption+="scrollbars=yes,width=750,height=600,left=100,top=25"; # # var sWinHTML = document.getElementById('dvTheDivIWantToPrint').innerHTML; # # # var winprint=window.open("","",sOption); # winprint.document.open(); # winprint.document.write('<html><body>'); # winprint.document.write(sWinHTML); # winprint.document.write('</body></html>'); # winprint.document.close(); # winprint.focus(); # # }catch(err){ # txt="There was an error on this page.\n\n"; # txt+="Error description: " + err.description + "\n\n"; # txt+="Click OK to continue.\n\n"; # alert(txt); # } }

Print PDF from my page .aspx C# VS-2008

Hello I have a aspx page with Charts and DataGrips and I want to print all my page in a pdf just like it look in my page.

how to print Test-page on default Printer ?

hi how to print Test-page on default Printer  using C# Winform Code ? thank's in advance

pass datas from one page to another to print

i have a page default.aspx ..... i am getting user information for our college symposium through that page..... when the user click the save and print button......it should be saved to the database and the form should be printed... saving is working correctly......wat i want is when the user click the print button then the information should be opened in a pop u window and the user shoul print that popup window application form awaiting for reply.....very urgenthi developers.....i have a page default.aspx .....i am getting user information for our college symposium through that page.....when the user click the save and print button......it should be saved to the database and the form should be printed...saving is working correctly......wat i want is when the user click the print button then the information should be opened in a pop u window and the user shoul print that popup window application form after registration.awaiting for reply.....very urgent

Getting Content Control on Content Page in Visual Studio


Visual Studio 2010

Working on a content page (.aspx page with associated master page)

Not all of the content place holders from the master page are represented on the content page (have been deleted)

Can go to the master page, find the place holder I want, return to content page and type out the "content" tag.

Is there an easier way? Can I drag a content tag in from a toolbox somewhere? Can I "re-apply" a master page to a content page and have it restore missing place holders? Looking for the lazy way out.

how to print current page and all pages of listview?



I have a listview.When I click a "Print" button It should be  print only listview items (current page & all pages).

how to do this pls tell me?

many thanks in advance.

in crystal report i need to print each group in new page



i have one problem in crystal reports

i want print  group details ,for each group it should print in new page.

some thing like this




Transaction Number                Date                           Amount                           Remarks

   1111                                   10/1/2007                    300.00                                 JE999

   2222               &nb

I cant print listview items to second page




I have a listview...

Here is the code...

Dim alta As Integer = 0
Dim yana As Integer = 0
txt.Text = 0
txtsayfa.Text = 0

Static pagenum As Integer = 0

For i = 0 To LV.items.count-1


            Dim aralik As New RectangleF(yana + 20, ust + alta, W / 4 - 15, H)
            e.Graphics.DrawString((LV.Items(i).SubItems(2).Text), font, Brushes.Black, aralik, trim)

            pagenum = pagenum + 1
            txt.Text = txt.Text + 1
            yana = yana + W / 4
            alta = alta + 200

            txtsayfa.Text = txtsayfa.Text + 1

            If txt.Text = 1 Then
                yana = 0

My Web Forms can't display Master Page in Visual Studio 2008



I hope somebody help me about this, I created a web site in visual studio 2008, the languaje is C#. After that, I created a master page for my web forms. The problem is: When I generate a new web form and choose the master page, the new web form can't display the content of the master page in designer mode or in the browser (by example, my web form is located in a directory called Users and master page is located in a directory called MasterViews. Only I can display them, if both files are in same location.

I reviewed the path of master page in the page directive, I changed the path with the same result.

Cannot run Basic Web page from Visual Web Developer on IE8 on Windows 7 - won't accept connection e


I am trying to run the 'Basic Web Page' tutorial in internet explorer 8 on Windows 7.

I get an error message in IE8:

The remote device or resource won't accept the connection

The device or resource (localhost) is not set up to accept connections on port "51551".


I just upgraded from Vista to Windows 7. It did work on Vista so I think it must be related to security setting???

Cannot seem to get a hit on the web for help so appreciate any help.



Converting aspx page to pdf before print.


Hi Friends,

I google this one from a long time. but i cound't able to find proper solution.

can you guys provide sample code how to covert aspx page to pdf before print.

I have aspx page with print button on it. so when the customer click on print button, he must get the print in pdf format.

Thanks in Advance.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend