473,729 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PrintPreviewDia log Display @ 100% Size?

I have the following PrintPreviewDia log code:
Private Sub tsbPrintPreview _Click(ByVal sender As System.Object, ByVal e
As System.EventArg s) Handles tsbPrintPreview .Click
Dim PrintPreviewJou rnalEntry As New PrintPreviewDia log

document.Docume ntName = CreateTmpRTFFil e(rtfJournal)
PrintPreviewJou rnalEntry.Docum ent = document

PrintPreviewJou rnalEntry.Icon = My.Resources.Pr intPreview
PrintPreviewJou rnalEntry.Text = "Journal Print Preview"
PrintPreviewJou rnalEntry.UseAn tiAlias = True
PrintPreviewJou rnalEntry.Start Position = FormStartPositi on.
PrintPreviewJou rnalEntry.Print PreviewControl. AutoZ oom = True
PrintPreviewJou rnalEntry.Print PreviewControl. Zoom = 1.0
PrintPreviewJou rnalEntry.ShowD ialog()
End Sub

I would like the Dialog to display the document at 100% Size. The Zoom is
correct, but the actual Dialog size is not.

Feb 2 '07 #1
0 1126

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

Similar topics

by: Ramsey Schaffnit | last post by:
Context: I have to print personal information on a preprinted form I've never seen using a printer I've never seen. I want to use a control to overlay the PrintPreview to indicate where I've printed. I want to use a separate control in order to allow the user to drag the field to a different position on the form so it doesn't have to come back for me to change the code. I want to use the PrintPreview because it fits so naturally with...
by: Michael A. Covington | last post by:
By default, my PrintPreviewDialog is coming out too small. What is the best way to control its size and position? Ideally, I'd just like to maximize it. Thanks!
by: sachin | last post by:
How to customize PrintPreviewDialog, such that, addition of a new button, change the functionality of existing button should be possible programatically. Sample code will help a lot. Moreover, what happens before the document gets displayed in PrintPreviewDialog, i.e. whether entire document gets copied in printer driver spool or only 1 or 2 pages? please guide regards
by: Kwok | last post by:
Hi, I want to print some record(s) from dataset.table(tbname) using PrintPreviewDailog and PrintDocument. But It has a infinity loop error. I use a class to control the print procedure. Here is my code.
by: Jack E. Hardie | last post by:
When I call the PrintPreviewDialog, the resulting default window and zoom size are too small to read. I have figured out how to resize the window, but can someone help me with the call to preset the zoom to 100% instead of the default Auto? My code is as follows: ' The PrintPreviewDialog is associated with the PrintDocument as the preview is ' rendered, the PrintPage event is triggered. This event is passed a graphics ' context where...
by: yulyos | last post by:
Hi, To set the zoom level of a PrintPreviewDialog: Dim YPreview As New PrintPreviewDialog() YPreview.Document = PrintDocument YPreview.WindowState = FormWindowState.Maximized YPreview.PrintPreviewControl.Zoom = 1.0 ' 0.75 = 75 %
by: Steve | last post by:
Hi all, I am finding that the page display in a PrintPreviewDialog contains some ugly graphics garbage. There appears to be a 1 pixel line along the bottom and right side which does not get refreshed as the page is drawn. If I drag another window over the top of the printpreview this line gets filled with garbage where the top window has been.
by: rbinington | last post by:
Hi, I am trying to write a DNN module that has the ability to insert articles into an article repository. I want the users to be able to move pages around and enter text into the FCKEditor. I want only one instance of the FCKEditor on the screen at one time so I make tabs that the user can click and I store the values in variables behind the scenes. I change the CSS class on the link that is the currently selected one. I have a really...
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox I have successfully validated my HTML and CSS code. 1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.