473,382 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How can I set or specify the number of pages to be print?

I created a richtextbox to input the text that I want to print, the command for printing which is the button and instead of printdialog box((PrintDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)) to be display, I created combobox which will display the available printers and then print. Like this code bellow .

To get the available printers:

foreach (String printer in PrinterSettings.InstalledPrinters)
{
cbox.Items.Add(printer.ToString());
}

And the button for printing :

PrintDocument1.PrinterSettings.PrinterName = cbox.SelectedItem.ToString();

PrintDocument1.Print();

Now what I want to do is I will add some textbox to input the page number to be printed . For example the current pages in the richtextbox are 12pages when I'm going to run the program I will input in the textbox the page/s that I want like (3-7pages). How could it be ?
Feb 11 '14 #1
1 1100
Luk3r
300 256MB
Here's a pretty straight forward write up. Remember that you have to draw before you can print:
http://doc.xceedsoft.com/products/Xc..._of_pages.html
Feb 11 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mark Thomas | last post by:
I have a checklist report for my students which has 2 pages of tick items and comments for their data handling project. Page 1: analysis and design covered Page 2: implementation etc If they...
0
by: Alan | last post by:
Hi everyone Reading this group I learned how to print raw data by reading "HOW TO: Send Raw Data to a Printer by Using Visual C# .NET http://support.microsoft.com/?kbid=322091" Mylabel is...
3
by: Jim McGivney - Office | last post by:
Is there a way to specify a number (0-141) to obtain one of the system colors ? Pen pen = new Pen(ColorNum); where ColorNum is a method to specify a color by its enumeration value. Thanks, Jim
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
5
by: sp_mclaugh | last post by:
Hi. I've just recently switched to using CSS (rather than tables) to display collections of thumbnails. That way, depending on the user's screen resolution and browser window size, the number of...
1
by: Vincent | last post by:
Hello all. I am opening a multi-page Access report via VBA code and was wondering if there is a way to specify the pages I want printed. For example, if the report is six pages long and I only...
1
by: Hugh Middity2 | last post by:
Hello, Our process for printing a daily sales report is created by running a macro in Access. Is it possible to define the number of copies to print within the macro or on the report name? I know...
1
by: quazi | last post by:
Dear all, i need a solution. Home page >> page1 >> subpage1 >> more... all pages create link dynamically how can it possible using javascript or css take care
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.