473,327 Members | 2,074 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,327 software developers and data experts.

Print Preview with Page Setup?

The PrintPreviewDialog that comes with VS2005 is good, but the people using
our software are having a hard time learning how to call the PageSetupDialog
first. They are accustomed to Microsoft Word's ability to simply drag a bar
around to set the margins and such from within the Print Preview.

Does anyone know of a way to either include a PageSetupDialog within the
PrintPreviewDialog or know of how to write a custom PrintPreviewDialog to
include PageSettings?
Nov 12 '08 #1
2 4029
"jp2msft" <jp*****@discussions.microsoft.comwrote in message
news:1D**********************************@microsof t.com...
The PrintPreviewDialog that comes with VS2005 is good, but the people
using
our software are having a hard time learning how to call the
PageSetupDialog
first. They are accustomed to Microsoft Word's ability to simply drag a
bar
around to set the margins and such from within the Print Preview.

Does anyone know of a way to either include a PageSetupDialog within the
PrintPreviewDialog or know of how to write a custom PrintPreviewDialog to
include PageSettings?
The PrintPreviewDialog is just a Form that conteains a
PrintPreviewControl. You can design your own Form containing whatever
functionality you desire plus a PrintPreviewControl for the previewing
itself, and then use that form instead of the original PrintPreviewDialog.

Nov 13 '08 #2
Though technically you answered the question, I'd still like some information
on how to do it. Is there a tutorial online or a little bit of code that
someone has to show how this is done?

"Alberto Poblacion" wrote:
"jp2msft" <jp*****@discussions.microsoft.comwrote in message
news:1D**********************************@microsof t.com...
The PrintPreviewDialog that comes with VS2005 is good, but the people
using
our software are having a hard time learning how to call the
PageSetupDialog
first. They are accustomed to Microsoft Word's ability to simply drag a
bar
around to set the margins and such from within the Print Preview.

Does anyone know of a way to either include a PageSetupDialog within the
PrintPreviewDialog or know of how to write a custom PrintPreviewDialog to
include PageSettings?

The PrintPreviewDialog is just a Form that conteains a
PrintPreviewControl. You can design your own Form containing whatever
functionality you desire plus a PrintPreviewControl for the previewing
itself, and then use that form instead of the original PrintPreviewDialog.

Nov 13 '08 #3

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

Similar topics

16
by: Neo Geshel | last post by:
I'm helping on a web site, and it's got our knickers in a knot. We're using the same basic CSS files (with mods) and same headers as from our other sites, but the "print preview" won't work...
6
by: Kebmo | last post by:
The client insists on having a link or button that the user can click to view the printable version in the browser. I already have the css done for the print version, so thats not a problem. I...
3
by: C.K | last post by:
Hello all, I am still working on my calendar program, and I have decided that the best way is for my vb program to write html tags into a file and then to print the file from ie6. Everything 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...
3
by: Fareast Adam | last post by:
Here is the code; <head> <script> function printpreview() { var OLECMDID = 7; /* OLECMDID values: * 6 - print
7
by: Fareast Adam | last post by:
I try to hide the print preview button that inside <div id="button"> when previewing the page. But the the problem happened the button is always hidden after i closing the preview page. Anyone have...
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...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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.