473,626 Members | 3,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Other printing problem (resolution not honored)


Before printing I create an instance of PrintDocument as Follow (beware,
pseudo code)

//=============== ===============
PrinterResoluti on pr = new PrinterResoluti on();
pr.X= 600;
pr.Y= 600;
pr.Kind = PrinterResoluti onKind.High;

PrinterSettings printer = new PrinterSettings ();
printer.Printer Name = "my printer";
printer.PageSet tings.PrinterRe solution = pr;

PrintDocument pd = new MyPrintDocument ();
pd.PrinterSetti ngs = ps;
//=============== ===============

That seems to work, even in OnPrintPage() the printer resolution is the one
I requested.
On top of that the resolution is one supported by the printer (according to
the PrinterSettings class)

Yet it doesn't seemed to be honoured! :(
Any tip?
Nov 17 '06 #1
6 1360
You posted in microsoft.publi c.dotnet.framew ork that you had
resolved this as being a problem with the printer.

You posted this question in other newsgroups as well,
all individually.

If you are going to post the same problem in multiple newsgroups
separately, please post the same answer as well.

It's better to cross-post -- post the problem in all the newsgroups
you're going to post it in at one time. This way, if someone in
one group finds a solution, people in the other groups are not
continuing to work on it, and they can go help someone who needs it.

Thanks.
Robin S.

"Lloyd Dupont" <net.galador@ld wrote in message
news:Om******** ******@TK2MSFTN GP06.phx.gbl...
>
Before printing I create an instance of PrintDocument as Follow (beware,
pseudo code)

//=============== ===============
PrinterResoluti on pr = new PrinterResoluti on();
pr.X= 600;
pr.Y= 600;
pr.Kind = PrinterResoluti onKind.High;

PrinterSettings printer = new PrinterSettings ();
printer.Printer Name = "my printer";
printer.PageSet tings.PrinterRe solution = pr;

PrintDocument pd = new MyPrintDocument ();
pd.PrinterSetti ngs = ps;
//=============== ===============

That seems to work, even in OnPrintPage() the printer resolution is the
one
I requested.
On top of that the resolution is one supported by the printer (according
to
the PrinterSettings class)

Yet it doesn't seemed to be honoured! :(
Any tip?


Nov 17 '06 #2
You posted in microsoft.publi c.dotnet.framew ork that you had
resolved this as being a problem with the printer.
Not at all!
I posted I solved the page size problem (in all group), the resolution is
still an open problem.
You posted this question in other newsgroups as well,
all individually.
Not at all, I did a multipost for both question.
The only exception is that I (mistakenly) posted this question 1st
individually in the windowsforms group.
If you are going to post the same problem in multiple newsgroups
separately, please post the same answer as well.
As I didn't do the 1st sentence, I'm not going to do the second one.
>
It's better to cross-post -- post the problem in all the newsgroups
Indeed, as I did!
you're going to post it in at one time. This way, if someone in
one group finds a solution, people in the other groups are not
continuing to work on it, and they can go help someone who needs it.

Thanks.
No Worries!
Robin S.
Lloyd
Nov 17 '06 #3
Thanks, Lloyd. I apologize that I wrongly accused you,
and I stand corrected. People who multi-post drive me
nuts, as you can probably tell. I probably need to just
get over it. :-(

Thanks for not flaming me!
Robin S.
----------------------

"Lloyd Dupont" <net.galador@ld wrote in message
news:uy******** ******@TK2MSFTN GP04.phx.gbl...
>You posted in microsoft.publi c.dotnet.framew ork that you had
resolved this as being a problem with the printer.
Not at all!
I posted I solved the page size problem (in all group), the resolution is
still an open problem.
>You posted this question in other newsgroups as well,
all individually.
Not at all, I did a multipost for both question.
The only exception is that I (mistakenly) posted this question 1st
individually in the windowsforms group.
>If you are going to post the same problem in multiple newsgroups
separately, please post the same answer as well.
As I didn't do the 1st sentence, I'm not going to do the second one.
>>
It's better to cross-post -- post the problem in all the newsgroups
Indeed, as I did!
>you're going to post it in at one time. This way, if someone in
one group finds a solution, people in the other groups are not
continuing to work on it, and they can go help someone who needs it.

Thanks.
No Worries!
>Robin S.
Lloyd


Nov 18 '06 #4
mhh... I had some hint that perhaps, indeed, it bothered you ;-)
well it was "Act like a Curmudgeon" day!

"RobinS" <Ro****@NoSpam. yah.nonewrote in message
news:g5******** *************** *******@comcast .com...
Thanks, Lloyd. I apologize that I wrongly accused you,
and I stand corrected. People who multi-post drive me
nuts, as you can probably tell. I probably need to just
get over it. :-(

Thanks for not flaming me!
Robin S.
----------------------

"Lloyd Dupont" <net.galador@ld wrote in message
news:uy******** ******@TK2MSFTN GP04.phx.gbl...
>>You posted in microsoft.publi c.dotnet.framew ork that you had
resolved this as being a problem with the printer.
Not at all!
I posted I solved the page size problem (in all group), the resolution is
still an open problem.
>>You posted this question in other newsgroups as well,
all individually.
Not at all, I did a multipost for both question.
The only exception is that I (mistakenly) posted this question 1st
individually in the windowsforms group.
>>If you are going to post the same problem in multiple newsgroups
separately, please post the same answer as well.
As I didn't do the 1st sentence, I'm not going to do the second one.
>>>
It's better to cross-post -- post the problem in all the newsgroups
Indeed, as I did!
>>you're going to post it in at one time. This way, if someone in
one group finds a solution, people in the other groups are not
continuing to work on it, and they can go help someone who needs it.

Thanks.
No Worries!
>>Robin S.
Lloyd



Nov 19 '06 #5
Let me guess, your next post would be like:

"Never mind, problme with the printer, t works!"


"Lloyd Dupont" <net.galador@ld wrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
mhh... I had some hint that perhaps, indeed, it bothered you ;-)
well it was "Act like a Curmudgeon" day!

"RobinS" <Ro****@NoSpam. yah.nonewrote in message
news:g5******** *************** *******@comcast .com...
>Thanks, Lloyd. I apologize that I wrongly accused you,
and I stand corrected. People who multi-post drive me
nuts, as you can probably tell. I probably need to just
get over it. :-(

Thanks for not flaming me!
Robin S.
----------------------

"Lloyd Dupont" <net.galador@ld wrote in message
news:uy******* *******@TK2MSFT NGP04.phx.gbl.. .
>>>You posted in microsoft.publi c.dotnet.framew ork that you had
resolved this as being a problem with the printer.

Not at all!
I posted I solved the page size problem (in all group), the resolution
is still an open problem.

You posted this question in other newsgroups as well,
all individually.

Not at all, I did a multipost for both question.
The only exception is that I (mistakenly) posted this question 1st
individuall y in the windowsforms group.

If you are going to post the same problem in multiple newsgroups
separately , please post the same answer as well.
As I didn't do the 1st sentence, I'm not going to do the second one.
It's better to cross-post -- post the problem in all the newsgroups
Indeed, as I did!

you're going to post it in at one time. This way, if someone in
one group finds a solution, people in the other groups are not
continuing to work on it, and they can go help someone who needs it.

Thanks.
No Worries!

Robin S.
Lloyd




Nov 28 '06 #6
Unfortunately not :-(
But no customer complained yet about the resolution combo box not
working......

"Bart" <ba***@xs4all.n lwrote in message
news:45******** *************@n ews.xs4all.nl.. .
Let me guess, your next post would be like:

"Never mind, problme with the printer, t works!"


"Lloyd Dupont" <net.galador@ld wrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
>mhh... I had some hint that perhaps, indeed, it bothered you ;-)
well it was "Act like a Curmudgeon" day!

"RobinS" <Ro****@NoSpam. yah.nonewrote in message
news:g5******* *************** ********@comcas t.com...
>>Thanks, Lloyd. I apologize that I wrongly accused you,
and I stand corrected. People who multi-post drive me
nuts, as you can probably tell. I probably need to just
get over it. :-(

Thanks for not flaming me!
Robin S.
----------------------

"Lloyd Dupont" <net.galador@ld wrote in message
news:uy****** ********@TK2MSF TNGP04.phx.gbl. ..
You posted in microsoft.publi c.dotnet.framew ork that you had
resolved this as being a problem with the printer.
>
Not at all!
I posted I solved the page size problem (in all group), the resolution
is still an open problem.

You posted this question in other newsgroups as well,
all individually.
>
Not at all, I did a multipost for both question.
The only exception is that I (mistakenly) posted this question 1st
individual ly in the windowsforms group.

If you are going to post the same problem in multiple newsgroups
separatel y, please post the same answer as well.
As I didn't do the 1st sentence, I'm not going to do the second one.

>
It's better to cross-post -- post the problem in all the newsgroups
Indeed, as I did!

you're going to post it in at one time. This way, if someone in
one group finds a solution, people in the other groups are not
continuin g to work on it, and they can go help someone who needs it.
>
Thanks.
No Worries!

Robin S.
Lloyd




Nov 29 '06 #7

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

Similar topics

0
1485
by: JF Turcotte | last post by:
Hi I'm unsuccessfully trying to print a form's image under VB.NET. To print under .NET is a real pain in the , I find it to be complex, lenghty, confusing, upsetting and ultimately not to be working at all. My strategy is first to save the form's image as a bitmap (this works, I can save the image to a file). Then I use the printer's Graphics object's drawImage method to send it
5
3460
by: VMI | last post by:
I have a BMP image (the form is also in PDF) that contains a scanned copy of a paper form that we need to fill out. Is it possible to use this image in my application so that the application can print out the form and the data that the user entered? For example, the user loads the application and a normal Windows Form asks for the user's name. When the user enters the name and clicks on the "Print" button, I'd like to print the form in the...
1
2571
by: Mina Gohari | last post by:
Hi all I have a problem with printing a report card to laser printer. Everything works properly on ink-jet printer, but when I use laser printer , it's not in predifined format. everything is mix-up. Bitmap bmpi = new Bitmap(1169, 827); Graphics bmp = Graphics.FromImage(bmpi);
2
2941
by: Stephen Wolfman | last post by:
I'm rendering an RS report into an image programmatically before printing (using System.Drawing.Printing) it, but it always renders the image based upon the screen resolution of the server that my app is running on. Anyone know if there's a way to change the resolution properties of the image that is to be rendered. The Image Device Information Settings:...
2
10818
by: Philippe | last post by:
I'm writing a vb.net application that prints jpeg pictires, and although I set the defaultpageSettings.printerResolution of my PrintDocument object to the maximum available printer resolution (1200x1200), I always get 600x600 in the .dpiX and .dpiY properties of the graphics receieved in the PrintDocument.PrintPage event... And of course the print result is ugly! Anyone's got an idea?
1
1327
by: William Cruz | last post by:
This piece of code prints out a image that I have placed on a picturebox. It currently prints it @ the top left hand side of the page. I want to know how I can control where in the page this image gets printed. Can anyone help? Thanks ;) William Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click
1
1212
by: Jos Roijakkers | last post by:
I am writing a program in Visual Studio 2005 (VB) that can print scanned images (saved as jpg-files). The printing is done by the following code: Private Sub pdoc_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument.PrintPage Dim i As Integer Dim intPrintAreaHeight, intPrintAreaWidth, marginLeft, marginTop As Int32 With PrintDocument.DefaultPageSettings
1
2109
by: mehdi | last post by:
Hi, Consider a printing scenario where I have to draw the entire page on a 827x1169 (.01 inch) size. Thereafter, the entire bitmap has to be resized to fill a given Bounds rectangle (keeping the aspect ratio fixed). To do so, I've just wrote the following code in the PrintPage event: Graphics g = e.Graphics; Rectangle bounds = TheDestinationRectangle; Rectangle rc = new Rectangle(0, 0, (Int32)(827 * g.DpiX / 100), (Int32)
6
3089
by: Summercool | last post by:
I just found that for a table, the margin for <trand <tdare not honored, but the padding is... is this a widely known fact? why make this an exception for margin, i wonder. margin not honored: http://www.0011.com/test_table/index-margin.html padding honored: http://www.0011.com/test_table
0
8641
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 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...
1
8366
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,...
0
8510
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 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...
0
7199
agi2029
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...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4202
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2628
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
1
1812
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1512
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.