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

e.PageSettings.PaperSource.Kind = PaperSourceKind.Custom;

I am trying to change the papersize with the following commands and it tells me the Kind must be set to custom as shown in the title but it is a read only property. How do I have custom page sizes by changing the kind property to Custom?

e.PageSettings.PaperSize.Height = 800;
e.PageSettings.PaperSize.Width = 500;
Aug 8 '07 #1
0 1096

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

Similar topics

0
by: Matthew | last post by:
on papersource.Kind... I get a string that says it's custom, what I really want is the tray id, which I see is stored in rawkind, but that's private, so I can't access it. Anyone know another way...
5
by: Maurice Mertens | last post by:
Hi all, having troubles with printing a crystal reports report to a specific tray in a printer. By means of System.Drawing.Printing.PrinterSettings.PaperSources it's possible to find out how...
5
by: Fred Nelson | last post by:
Hi: I'm trying to write a program that will print envelopes using a HP Laserjet 4 that has three trays. In the future this program will work with other printers so I don't want to "hard code"...
0
by: Richard | last post by:
Some printers "tray id's" does not correspond to .NET framworks System.Drawing.Printing.PaperSourceKind enumerator, such as "hp color LaserJet 2550L". this is what the "tray id's" actually is ...
1
by: Ed Sutton | last post by:
My C# app. apparently has problems with PageSettings not being initialized properly after calling PageSetupDialog. If a user selects a non-default printer from PageSetupDialog, the PageSize is...
0
by: ChrisM | last post by:
I'm using VS2003 withthe built in version of CrystalReports. I'm trying to write a module that will allow a user to send Crystal Reports directly to the printer, without using the ReportViewer....
4
by: smckibben01 | last post by:
I am trying to change the papersize with the following commands and it tells me the Kind must be set to custom as shown in the title but it is a read only property. How do I have custom page sizes by...
5
by: Garima12 | last post by:
user is selecting from combobox either portrait or landscape for printing the page. I am writing following code to set it. it is not working. In preview it shows portrait in both cases. If...
1
by: Lorentz | last post by:
Good day... I'm part of a group that is developing an app and my current task is to set and store PageSettings for our documents. I am hoping to utilize our architecture in storing PageSettings...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
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...
0
tracyyun
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...

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.