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

How to use GetHdevmode/SetHdevmode in C# with DEVMODE

Hello
I am trying to understand how to use
GetHdevmode/SetHdevmode to set public and private portions of
DEVMODE structure.
Is there any example in C# .Net framework that shows how to
change printer settings say page by page??
thanks
heino

Nov 16 '05 #1
0 2097

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

Similar topics

3
by: Eric Eggermann | last post by:
Hello, I need to implement a custom print dialog, and I'm trying to show a printers configuration box, like when you click Properties on the windows forms PrintDialog. I've gotten as far as...
0
by: bluf2000 | last post by:
Hello csharp professionlals. I have a problem: my application has to handle with DocumentProperties API. The application is coded in C#. It works fine, the DocumentProperties appears, after that...
0
by: Benoit Courchesne | last post by:
Why when I do this, I get garbage in my dm2 Structure ? PrintDocument pd = new PrintDocument(); IntPtr hDevMode = pd.PrinterSettings.GetHdevmode(); IntPtr pDevMode = GlobalLock( hDevMode ); dm2...
0
by: heino | last post by:
Hello I am trying to use GetHdevmode/SetHdevmode to set public and private portions of DEVMODE structure. Can any one post an example in C# .Net framework that shows how to change...
0
by: active | last post by:
I use Devmode and SetPrinter to set the default printer to landscape. I check using the Windows XP "Printers and Faxes" menu item. The printer driver reports landscape. I then use...
0
by: Flavio Zanellato | last post by:
Hello, anybody has worked with the DEVMODE structure and the page settings properties ? I've not seen a way to - get the actual DEVMODE data from a default printer - change any setting -...
0
by: KiwiPrinter | last post by:
Are there any sample of this that actually work? Thanks for any assistance
1
by: ThunderMusic | last post by:
Hi, I have a structure I have to use called DEVMODE for when I want to call EnumDisplaySettings. you can see the C struct at the address below : ...
2
by: deric | last post by:
Hi I am trying to change the DevMode structure to change the paper source to be used by the PrintDocument. I know that there is a PaperSource provided by the PrintDocument.PrinterSettings but the...
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
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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
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...

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.