473,385 Members | 1,569 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,385 software developers and data experts.

Copy the page automatically from the current richtextbox to new richtextbox

I created a richtextbox and I can input some text and also I add the printpreviewdialog for me to determine if how many pages in my first richtextbox. Now I want to copy some pages automatically for example the if the first richtextbox contains a 4pages and I would like to copy only the 2nd page and it is automatic copy without highlighted the text to the second richtextbox. How could it be ?

To determined if how many pages in my first richtextbox I used this codes:

try
{
PrintPreviewDialog1.Document = PrintDocument1;
PrintPreviewDialog1.ShowDialog();
PrintPreviewDialog1.WindowState = FormWindowState.Maximized;


}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString(), "Error");
}
Feb 12 '14 #1
0 961

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

Similar topics

11
by: Danny | last post by:
Hello I would like to run an ASP page each day at the same time automatically. it reads from my product data and ftps the data to another server. I am running on a windows system with IIS I...
1
by: Avi | last post by:
Hi All, I am using following function to copy a file. System.IO.File.Copy(sourcefile,destFile); I am giving absolute path in destFile. (eg. "C:\avi.txt") After execution of this call, my...
3
by: Stephen V | last post by:
Can anyone help me out with this problem. I would like to redirect/ go to another php page when my SQL insertion is done and also send a variable at the same time. the idea is, to come on my...
10
by: Janelle.Dunlap | last post by:
In the database that I am creating I need to be able to rename the file with a name that the user specifies using the Save As Dialog window (I already have the code that brings up this window). In...
3
by: laryten | last post by:
Hi, Is there a way to update the same web page instead of getting a new page each time we click the submit button? The simplest thing to do is to delete the current page (or go back to the...
1
by: Jakey Jake | last post by:
Hi, I need some HTML / Javascript that will automatically reload or refresh my page after 5 minutes. I have tried Meta in HTML but I cant access the <Head> as its not entirely my page. Can...
10
by: Sam Polos | last post by:
Is there a way, with javascript, that if someones visits a webpage that I automatically get an email with information about the visitor? Info such as IP, referrer, etc. Thanks.
2
by: Jeff | last post by:
ASP.NET 2.0 In my webproject I've created a page which contain a button. This page will be opened from 2 pages. This button must be invisible if the page it is placed on are opened from one of...
7
by: tanyali | last post by:
Hi guys, I wanna to execute a php page automatically in the background, or execute it in shell script, and set this script to execute as a cron job. so who knows either of the two questions...
5
by: nttuanit | last post by:
I have a Web App, I want to start Main page automatically after IIS is started without any request from browser. OR run one Script in Global.asax after IIS started. I understand that the...
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
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.