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


Top 5 Contributors of the Month
satyapriyanayak
abhays
SP
Ashutosh Jha
Mahesh
Post New Web Links

how to print current page and all pages of listview?

Posted By:      Posted Date: September 21, 2010    Points: 0   Category :ASP.Net
 

hi,

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.





View Complete Post


More Related Resource Links

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
   

Print list option responds only to current page

  

Hi,

      I have enable print list option in my site , this option is respond only current page.

example : I have 25 column  In my custom list , all column data is proper show in layout page but print only one page is like current page (9 columnout of 25 column)  , I want to print all pages how to do this?

th


azad

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


Button click in master page use in other pages I have to click twice. Why?

  

In my masterpage I have a menu with buttons. I want the buttons to do something after click. It works but I have to click twice on the button, why? What do I have to do to just to click once?



Knowing the event occured in user control in current page

  

Hello,

 

      My web application has user control which uses third party controls called Devexpress controls. The user control is a menu  and is part of the Master page. It is placed there because this needs to be available in all the pages. My user controls raises a even on item clicked. Now, My question is that Is there any way to know that the event has occurred in page_load of the current page in which I am in?



Content deployment: pages not based on a page layout

  
Is it possible to use content deplyoment feature when pages (in page library) are not based on a Page Layout?

SharePoint 2007 - Consolidating everything as feature into WSP [Content Type, Page Layout, Pages, Ma

  

Hello –

 

Overview – We are building a Mobile Web Site using SharePoint 2007. The big screen site has been already built and we need to integrate the mobile site into same site collection of big screen –

 

·         The Mobile site will use the existing content types of existing big screen site

·         We will build a new custom Master page

Sharepoint 2007 - Wiki site - New Pages Not Inheriting Custom Master Page

  

I am working on a SP site (MOSS not WSS) which is heavily customised away from the OOTB layout. I need to create a Wiki site, which was going well - I've created a master page which displays the miniconsole (this was not visible with our customised layout), and made it the default master page for the site. This has been applied to the two standard pages that come with the Wiki site, however when a new page is created, it seems to inherit the default.master, rather than my custom master page - thus not showing the miniconsole.

When I have created a new page, I am able to use SharePoint Designer to attach my custom master page to it, which works perfectly, however this will not be a viable option going forward as end-users create their new wiki pages.

How can I get the new pages to inherit my master page when they are created?

Shark


Programmatically Hide Master Pages from Site Master Page Settings page?

  

Hi,

I know there is a field you can check when you edit the properties of a Master Page in the Master Page Gallery to set a Master Page to hidden but ... can anyone think of a way to programmatically hide specific Master Pages from the Site Master Page Settings page?

Maybe this should be two questions:

  1. How do I programmatically access a Master Page in a Master Page Gallery?
  2. Is there a property that can be set that will hide the page from the Site Master Page Settings page?

Web Part working fine on the top-level page but 'Not Safe' error on lower-level pages.

  
Hi,

I have created a Web Part which reads and parses the SharePoint logs in order to display usage information of the page it resides on.  The Web Part works perfectly on the top page, reading and displaying the information desired.  However, once the Web Part is added to any page lower in the site heirarchy (sub-page) the same Web Part throws the following error:

Error 
 
Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

Show Error Details
Hide Error Details

[UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.]
  at Microsoft.SharePoint.ApplicationRuntime.SafeControls.GetTypeFromGuid(Guid guid)
  at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts)
 


Of course the current version of the Web Part is in the SafeControls list on the web.config.

The Web Part was originally designed to return site activity only for the top default.aspx page and worked fine but started to fail in the manner described above once I added the following line of code to return a SPCo

Printer Friendly Page from a listview control

  

Hi guys,


I am working on a web form that displays the data from an access data source into a list view control. I need an advice on how to create , render a new page printer freindly .not buttons, controls,,, I have implemented a  java script function to select which records I want to view in the printable page but I cannot came up with any idea on how  to use this to create the printable help..



THanks


How to get current page file name?

  
Hi,

I am trying to get the current page file name that i access to.
Lets say i am at test.aspx page, i want it to return me "test" file name.
I tried to use this.Page.toString(), it returned me "ASP.test_aspx" which is like half correct....
but i would like to get only "test".

2nd question, this.Page.toString() will always return me in a format of ASP.[filename]_[fileextention]?
If that's the case, maybe i can use splilt function to get the file name i want if there aren't any better solution than that.

Thanks!

regards,
weihann.

click a button to print current window form

  
how can i click a button to print current window form? i don't know how to set and define something? anyone give me example for my reference   thanks.
Categories: 
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