Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: Anyone actualy wants to answer this question? Pin
Henry Minute19-Apr-09 13:17
Henry Minute19-Apr-09 13:17 
GeneralRe: this example has no source code ... Pin
ErezRozn19-Apr-09 20:22
ErezRozn19-Apr-09 20:22 
Questionregistry operations Pin
shefa' isied19-Apr-09 0:11
shefa' isied19-Apr-09 0:11 
AnswerRe: registry operations Pin
Colin Angus Mackay19-Apr-09 1:06
Colin Angus Mackay19-Apr-09 1:06 
GeneralRe: registry operations Pin
shefa' isied19-Apr-09 1:15
shefa' isied19-Apr-09 1:15 
Question[Message Deleted] Pin
hkjghkj118-Apr-09 23:28
hkjghkj118-Apr-09 23:28 
AnswerRe: Changing text in ListBox item at Runtime Pin
Dominik Reichl18-Apr-09 23:44
Dominik Reichl18-Apr-09 23:44 
QuestionRotating the hDC Pin
damichab18-Apr-09 21:46
damichab18-Apr-09 21:46 
Hi,

This is essentially a follow up question to that found in the thread:

http://www.codeproject.com/script/Forums/View.aspx?fid=1649&msg=3004643[^]

I am going out of my mind here and have a deadline that is approaching fast.

My problem is that I have a label printer of which the printed output needs to be rotated 180 degrees to match the labels coming out of it.

The problems:

1. The label printer does not have a native reverse mode in its driver.

2. I am using a Graphics.GetHdc() to receive a handle which is being used to put rich text into.

3. using:
Matrix m = new Matrix(...);
m.RotateAt(180f, width/2, hight/2);
e.Graphics.Transform = m
seems to totally ignore the rich text written directly to the hDC. It prints quite well where it would be anyway not using the the 'Transform;

4. Creating a Bitmap and using GetDC() from it, putting the rich text onto that bitmap and drawing it with e.Graphics.DrawImage() works quite well, but it is so pixelated that it is unacceptable for commercial use.

5. Thought I had found an answer when I discovered the SetResolution() method of the Bitmap, but that made absolutely no difference to the printed output what-so-ever.

I have tried all sorts of combinations to get any of the above to work but to no avail. I am now desperate. Any help, ideas, good links or suggestions would be appreciated.

Regards,

David Bailey.
AnswerRe: Rotating the hDC Pin
Luc Pattyn19-Apr-09 0:18
sitebuilderLuc Pattyn19-Apr-09 0:18 
GeneralRe: Rotating the hDC Pin
damichab19-Apr-09 1:00
damichab19-Apr-09 1:00 
QuestionHow to connect MySQL with C# for windows mobile Pin
khosnur18-Apr-09 21:05
khosnur18-Apr-09 21:05 
AnswerRe: How to connect MySQL with C# for windows mobile Pin
Henry Minute19-Apr-09 0:10
Henry Minute19-Apr-09 0:10 
GeneralRe: How to connect MySQL with C# for windows mobile Pin
Tim Layton11-May-09 12:56
Tim Layton11-May-09 12:56 
AnswerRe: How to connect MySQL with C# for windows mobile Pin
Henry Minute11-May-09 13:08
Henry Minute11-May-09 13:08 
QuestionMacros and Clipboard Pin
srikrupha18-Apr-09 20:39
srikrupha18-Apr-09 20:39 
AnswerRe: Macros and Clipboard Pin
Eddy Vluggen18-Apr-09 23:54
professionalEddy Vluggen18-Apr-09 23:54 
GeneralRe: Macros and Clipboard Pin
srikrupha19-Apr-09 0:34
srikrupha19-Apr-09 0:34 
GeneralRe: Macros and Clipboard Pin
Eddy Vluggen19-Apr-09 0:47
professionalEddy Vluggen19-Apr-09 0:47 
QuestionThe 'MySQLProv' provider is not registered on the local machine. Pin
khosnur18-Apr-09 20:38
khosnur18-Apr-09 20:38 
AnswerRe: The 'MySQLProv' provider is not registered on the local machine. Pin
Eddy Vluggen18-Apr-09 23:08
professionalEddy Vluggen18-Apr-09 23:08 
QuestionTranselating an application?? Pin
Muammar©18-Apr-09 20:21
Muammar©18-Apr-09 20:21 
AnswerRe: Transelating an application?? Pin
Mycroft Holmes18-Apr-09 22:11
professionalMycroft Holmes18-Apr-09 22:11 
GeneralRe: Transelating an application?? Pin
Muammar©19-Apr-09 0:41
Muammar©19-Apr-09 0:41 
GeneralRe: Transelating an application?? Pin
Mycroft Holmes19-Apr-09 1:34
professionalMycroft Holmes19-Apr-09 1:34 
QuestionClickOnce Pin
Chapooki18-Apr-09 19:59
Chapooki18-Apr-09 19:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.