473,320 Members | 2,080 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.

PageSetup

I have put a PageSetupDialog onto my form and put the following code to show
the dialog box.
It seems that all of the PageSettings are in 1/100 inch yet the
PageSetupDialog box displays the margins in mm.
As a result every time I open the dialog box and click OK the margins are
reduced by a factor of approx. 2.5.

Is there a property somewhere to force the PageSetupDialog box to display
the margins in 1/100 inch?
Private Sub MainMenuPageSetup_Click( _
ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles MainMenuPageSetup.Click
Try
If Me.PageSetupDialog1.PageSettings Is Nothing Then
Me.PageSetupDialog1.PageSettings = New PageSettings
End If
Me.PageSetupDialog1.ShowDialog()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Nov 20 '05 #1
0 691

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

Similar topics

5
by: Niyazi | last post by:
Hi, I have an html page and I might be moving to asp.net page that contains a some kind of forum and string. It is kind of application form. User have to enter some (string) value into the...
0
by: Niyazi | last post by:
Hi all, This my aspx page first line of code. <%@ Page CodeBehind="index.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="TB.index" %> Than inside head tag I have following script(s)...
1
by: Adam Faulkner via DotNetMonster.com | last post by:
I had a problem before extracting pages from an existing word document and then inserting the content into a new word document. The following code below works with Microsoft Word 2000 Function...
3
by: lewism | last post by:
I added this code to a an ASP page to print a gridview in Microsoft Excel. This page is a weekly work schedule for our company's intranet. The code works on a majority(80%) of the workstations in...
0
by: latha ranjani | last post by:
Hi, i am new to .Net programming,need your help in solving this issue. I have open a word document capture the pagesetup properties of the word document and then open a new word document with the...
4
by: pratimapaudel | last post by:
Hi I have created reports in SQL SERVER 2005 Reporting service. But my report is not printing all the columns in one page. It is breaking the columns in two pages. I have tried to set up the...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
2
by: bush | last post by:
any one of u have idea how we can set footer of a IE page without changing page setup. then plz tell me...i need it urgently
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
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: 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: 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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.