473,387 Members | 1,485 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,387 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
4 1864
weaknessforcats
9,208 Expert Mod 8TB
I need more information. Is this a C++ program or are you using some tool or other??
Aug 8 '07 #2
It is a C# program. It will be used to print labels with bar codes on a label printer.
Aug 13 '07 #3
weaknessforcats
9,208 Expert Mod 8TB
I am moving this to the .NET forum.
Aug 14 '07 #4
Now that it is in the .NET Forum... does anyone have any clue as to how I can do this?
Aug 21 '07 #5

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...
1
by: trint | last post by:
When PrinterSettings.Copies fires, I need to somehow get it to select three separate papersources...one for each of 3 defaultpagesettings.copies. PrinterSettings printerSettings = new...
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....
0
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...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.