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

Print Preview Control

Hi,

I am developing a print preview dialog for my application and have put a
System.Windows.Forms.PrintPreviewControl onto a form.

So far I am able to manipulate the zoom property and the document that is
displayed. However I also want to put in navigation buttons to navigate from
one page to the next - but I cant see a property that allows me to set the
current page?

How do I change the page in the System.Windows.Forms.PrintPreviewControl?

Thanks in advance
Nov 21 '05 #1
2 6372
Hi,

PrintPreviewControl1.StartPage = 3

PrintPreviewControl1.Invalidate()

Ken

----------------------

"hplloyd" <hp*****@discussions.microsoft.com> wrote in message
news:82**********************************@microsof t.com...
Hi,

I am developing a print preview dialog for my application and have put a
System.Windows.Forms.PrintPreviewControl onto a form.

So far I am able to manipulate the zoom property and the document that is
displayed. However I also want to put in navigation buttons to navigate from
one page to the next - but I cant see a property that allows me to set the
current page?

How do I change the page in the System.Windows.Forms.PrintPreviewControl?

Thanks in advance
Nov 21 '05 #2
Hi,

printdocument.print
http://msdn.microsoft.com/library/de...printtopic.asp
Ken
----------------------
"hplloyd" <hp*****@discussions.microsoft.com> wrote in message
news:7C**********************************@microsof t.com...
Thanks ken....One more question....how do I print the previewed
document???!!!???
"Ken Tucker [MVP]" wrote:
Hi,

PrintPreviewControl1.StartPage = 3

PrintPreviewControl1.Invalidate()

Ken

----------------------

"hplloyd" <hp*****@discussions.microsoft.com> wrote in message
news:82**********************************@microsof t.com...
Hi,

I am developing a print preview dialog for my application and have put a
System.Windows.Forms.PrintPreviewControl onto a form.

So far I am able to manipulate the zoom property and the document that is
displayed. However I also want to put in navigation buttons to navigate
from
one page to the next - but I cant see a property that allows me to set the
current page?

How do I change the page in the System.Windows.Forms.PrintPreviewControl?

Thanks in advance

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Pat | last post by:
I would like to send the Print Preview of a MS Access form to a Snapshot file. The form contains an OLE graph. BACKGROUND A snapshot of a report is possible. If I could I would use a report to...
1
by: CrowT | last post by:
Scenario: I have a PDF document stored as follows: c:\Files\MyDoc.pdf On an Access form, I have a 'Preview' button and a 'Print' button. Specifically, what code do I write to: a. Preview the...
1
by: sea | last post by:
I have Access 2002 and I am writing this application with a custom menu bar that has a print preview button -- the start up options hide the design window. The problem is that when an open form is...
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...
0
by: ShaneO | last post by:
There have been similar questions raised in the past, however no answers seem to have been provided, so I thought I'd give it a go. Scenario 1: My Windows Forms app generates (say) 10 pages in a...
6
by: CSharpguy | last post by:
In my gridview I have 2 -3 template fields which are hyperlinks. I allow the user to print this grid. When the grid prints it also prints the links, how can I take the user to a print preview page...
9
by: igotyourdotnet | last post by:
I need to create a print preview page BUT my page I need to print has a grid and in the grid I have 2 or 3 columns that have links I want to hide the columns with the links on my print preview page...
2
by: Brad Pears | last post by:
I have some sample code that uses the print dialog, print preview and a print direct options. If I select print preview and then click the printer icon from that, the document prints. If I...
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
11
by: Gord | last post by:
When I open a certain report, it runs some code that generates the records that will be displayed in that report. This works fine. When I go to print preview the report it appears that the code...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.