473,414 Members | 1,596 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,414 software developers and data experts.

Other printing problem (resolution not honored)


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

//==============================
PrinterResolution pr = new PrinterResolution();
pr.X= 600;
pr.Y= 600;
pr.Kind = PrinterResolutionKind.High;

PrinterSettings printer = new PrinterSettings();
printer.PrinterName = "my printer";
printer.PageSettings.PrinterResolution = pr;

PrintDocument pd = new MyPrintDocument();
pd.PrinterSettings = 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 1336
You posted in microsoft.public.dotnet.framework 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@ldwrote in message
news:Om**************@TK2MSFTNGP06.phx.gbl...
>
Before printing I create an instance of PrintDocument as Follow (beware,
pseudo code)

//==============================
PrinterResolution pr = new PrinterResolution();
pr.X= 600;
pr.Y= 600;
pr.Kind = PrinterResolutionKind.High;

PrinterSettings printer = new PrinterSettings();
printer.PrinterName = "my printer";
printer.PageSettings.PrinterResolution = pr;

PrintDocument pd = new MyPrintDocument();
pd.PrinterSettings = 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.public.dotnet.framework 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@ldwrote in message
news:uy**************@TK2MSFTNGP04.phx.gbl...
>You posted in microsoft.public.dotnet.framework 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@ldwrote in message
news:uy**************@TK2MSFTNGP04.phx.gbl...
>>You posted in microsoft.public.dotnet.framework 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@ldwrote in message
news:%2****************@TK2MSFTNGP02.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@ldwrote in message
news:uy**************@TK2MSFTNGP04.phx.gbl...
>>>You posted in microsoft.public.dotnet.framework 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 28 '06 #6
Unfortunately not :-(
But no customer complained yet about the resolution combo box not
working......

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

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


"Lloyd Dupont" <net.galador@ldwrote in message
news:%2****************@TK2MSFTNGP02.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@ldwrote in message
news:uy**************@TK2MSFTNGP04.phx.gbl...
You posted in microsoft.public.dotnet.framework 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 29 '06 #7

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

Similar topics

0
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...
5
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...
1
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...
2
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...
2
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...
1
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...
1
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...
1
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...
6
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.