.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

How do I get PrintPreviewDialog to show multiple pages?

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :.NET Framework


I’m developing a Windows program using VS2010 and .NET 4.0.

I want to preview the printing of a text file using the PrintPreviewDialog.ShowDialog method.

The text being sent to the preview is 192 lines, but when the preview dialog box appears, it only shows one page of 60 lines.

How do I get the print preview to show multiple pages?

Any help would be gratefully appreciated.

View Complete Post

More Related Resource Links

Can we show a line chart on multiple pages with page breaks? SSRS 2008


Hi there,

I am using SSRS 2008. I have a line chart which queries a huge dataset and shows the datapoints really close to each other that the labels and grid-lines are overlapping onto each other. http://oi54.tinypic.com/2vifrb9.jpg

Is there a way to split the chart and show it on different pages.? Thanks in Advance :)


Inherit from multiple master pages


How does one inherit from multiple master pages?


I.e.  I have a base master page that contains several ContentPlaceHolders.









I want to have separate master page files (one for each ContentPlaceHolder) so that I have 4 separate files: 3 ContentPlaceHolders (each adding specific content) and 1 base master page.

The ASPX files will then inherit from the base master page.



Is it possible to use multiple date fields to have an event show more than once on a Sharepoint 2007

Hello, Is it possible to use multiple sets of start and end times to have events display multiple times in a sharepoint calendar? To clarify: - I have the standard fields of "Start Time" and "End Time" in my calendar list. - Events show on the calendar just fine. - Would like to create additional fields called "Start Time 2" and "End Time 2" within the same record and have the event show multiple times on the calendar. - The recurrence functionality of sharepoint will not meet my needs because the pattern I need to use is not in one of the allowed choices. Thanks in advance, John

Site Pages don't show up in mobile mode

In Site actions, I get the regular URL and the Mobile URL - - I've created several aspx pages with aspx controls on them. Two pages have dropdownlists, textboxes and gridviews. One just has a regular HTML table with aspx buttons, with postbackurls. Any list I create shows just fine, but none of the content in my aspx pages show up in mobile mode. I can get a list of the page names (with the extensions) when I click on 'view All Pages', however, when I click on the links, the content in the page does not show. What are we supposed to do for pages like these, for mobile mode?

Show wiki page library columns on wiki pages- SharePoint 2010

I created a wiki page library in SharePoint 2010 and added a few columns to the library. However, these columns do not show on the actual wiki pages as they did in SharePoint 2007. I looked through the library settings but didn't find anything to turn on this feature. Does anyone know how to do this or if this feature was even included in SharePoint 2010? Thanks.

Contact Details web parts on pages won't show any more than 7 pictures



For each new person that is added to a company department, we add a contact details webpart and their picture to the departmental page. We can't seem to add any more than that, the contact details webpart and their name shows up, but no picture. The other 7 pictures do continue to show up. Is there a limitation on the contact details webpart?

how to hide .aspx extension for multiple pages


In MVC it's very easy to control routing.


In my classic ASP.NET application I want to "hide" .aspx extension


I can do it with new ASP.NET 4 feature: MapPageRoute

  1. routes.MapPageRoute("login""login""~/login.aspx");  
routes.MapPageRoute("login", "login", "~/login.aspx");


Now http://site.com/login will work. But I have more than 50 pages, and adding 50 rules is ridiculous.


How can I solve this?


creation of multiple .aspx pages from database name


 hi ,
i am making an internal social networking application for my small organisation where i work  .i have a list of all employee  names in a mssql 2000 database that are the names of 5000 employees of the company  one by one arranged in rows in a single coloumn of a table . i have a folder ,i want to make  .aspx files/pages in that folder ,the file name should be same as names of the person in database coloumn.can any help me with codes to automatically make the .aspx pages with the same names as it is in database coloumn.(note that folder will not take any duplicate values(name will not be repeated)) .i am making application using asp.net 2.0.file will be automatically created in the folder as soon as new name is entered in database.its very difficult to make 5000 aspx page with each employee name and it will be difficult to make new pages again and again after new employees names are entered.so i want that files will be automatically created after employee names are registered.  

thanks in advance.

hoping for help for someone.

Webpart on multiple pages


I'm trying to have a webpart displayed on multiple pages. However, this webpart gets different data based on what is in the URL, so the situation explained in this link http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/5d0672ad-9b39-40b8-a60c-bfcb9e6895b7/ will not work. Is there any way to say, create a template or something and drop my webpart in it, and have the webpart "know" what is in the query string, and display its data accordingly? I tried altering the WebPartPage.aspx file in SP Designer with no luck; I couldn't figure out how to get the aforementioned webpart in there.


Thanks for any help or ideas to try. Appreciate your time.

Group report splitting into multiple pages Need it in 1 page


1) Few of my group reports which have more than 500 rows are splitting into many pages without column header. (eg, page 1, page 2... etc.) I would like configure it to be in one page however large it may be.

2) I tried setting column header in group reports which are splitting into multiple pages but its not working.

Either I need achieve point 1 or point 2

Could you please help me how to achieve it?


fetching values from multiple tables to show on crystal report

Can somebody guide me to make crystal report showing values from multiple tables?

How to show all ValidatorCalloutExtender multiple controls



I am trying to implement ValidatorCalloutExtender to the RequiredValidator controls.

I can say it is working, but i cannot find a way to show all ValidatorCalloutExtender at the same time.

When I click submit button, all RequiredValidator controls are fired but only first ValidatorCalloutExtender control is visible. To activate the others, user needs to click other controls, then related ValidatorCalloutExtender controls pupup.

How to show all ValidatorCalloutExtender multiple controls?


Dynamic Data. Multiple Custom Pages For The Same Table



I've just started out my first project using Dynamic Data and I've been running into a series of problems. Dynamic Data doesn't seem to be swimming in documentation. Anyway, my setup is:

  • Visual Studio 2010
  •  .net 4.0
  • Dynamic Data Domain Service Web Application Project Template (I have the RIA Services for ASP .net installed)
  • using an Entity Data Model
  • using a DomainService class
  • ASP .net Membership

There are a couple of things I am trying to achieve:

  1. I have my scaffolding turned on for all the tables. I am using the RequiresRole attribute in order to restric access to some tables. I have understood how you can create a Custom Page Template for a certain table, no problems there. I would like to be able to use the default PageTemplates for lets say the Administrator role and the Custom Page Templates for another role; the idea would be that the Administrator would be able to edit anything in the DB, but the restricted user would receive a Custom Page with only a few actions available. Long story short: is there a way to access both the standard and custom templates?
  2. Related to question number 1: Can I have multiple Custom Page Templates for the same table? I saw someone asking

    Show filtered data from multiple data lists in a view


    I am attempting to build a very simple Sharepoint site with 3 data lists: 1) Themes,  2) Value Statements, 3) Supporting Details

    Each Theme has 2+ Value Statements and each Value Statement has 2+ Supporting Details. 

    Currently, I have the Forms setup so that when I enter a new Supporting Detail, the individual must select from the avaialable Value Statements (using a Lookup Column). 

    What I would like to do, now, is allow an individual who is looking at a view of all the Value Statements to see the Title field of all the Supporting Details that have been entered for that particular Value Statement (with hyperlinks).

    I'm guessing that I need to use SharePoint Designer 2010 to customize the view, but am not certain how to do it from there.


Multiple same ID on different pages - one CSS file



I`s my first post so hello to everybody.

I am fresh to web programming and I have a questions.

In my project I have few pages. On two of them I have <div> s, inside of which I have textboxes. The Id`s of the <DIV>s are the same, and I don`t want to change them because they are giving me information about what Div is it.

Ofcourse, as they are in different web pages, thy need to have a different style.

How to deal with it in the CSS file? Is that possible e.g. to create a class e.g. "Page1", and assign a style to Id`d inside that class??



Multiple web pages


If you have multiple pages, lets say a login page and another page called page2.  I want it so everytime it starts with the login page first before goin to the other page.  How do i do this???

How to show multiple updateable List screens for one table?



Is "View" the only option to have multiple List screens for one table?

For example, I would like to have multiple Orders screens in Northwind DB per product and show a particular product order screen to a certain user group.

Each screen should be updeatable.

I checked a Link, which Steve suggested for a Updateable view.

Is it the only option?

Best regards,

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