Click here to Skip to main content
16,006,475 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# output files Pin
Dave Kreskowiak4-Oct-04 23:52
mveDave Kreskowiak4-Oct-04 23:52 
GeneralRe: C# output files Pin
Jose Vicente4-Oct-04 23:55
Jose Vicente4-Oct-04 23:55 
Generalusing Graphics on an indexed image Pin
benjymous4-Oct-04 22:48
benjymous4-Oct-04 22:48 
GeneralRe: using Graphics on an indexed image Pin
Alex Korchemniy5-Oct-04 18:13
Alex Korchemniy5-Oct-04 18:13 
GeneralSending ANSI to Printer Driver Pin
myNameIsRon4-Oct-04 21:02
myNameIsRon4-Oct-04 21:02 
GeneralRe: Sending ANSI to Printer Driver Pin
Dave Kreskowiak4-Oct-04 23:44
mveDave Kreskowiak4-Oct-04 23:44 
GeneralRe: Sending ANSI to Printer Driver Pin
myNameIsRon5-Oct-04 5:43
myNameIsRon5-Oct-04 5:43 
GeneralRe: Sending ANSI to Printer Driver Pin
Dave Kreskowiak5-Oct-04 6:23
mveDave Kreskowiak5-Oct-04 6:23 
There is no translation done to the string that you send to the printer. This means that you cannot use any c# escape sequences and expect them to translate properly in your string. You'll have to build your print ESC sequences something like this:
StringBuilder EscE = new StringBuilder( {(char)27, "E"c, "1"c } );
String stringToSend = EscE.ToString() + "Hellow World!";

This code is NOT tested and not guaranteed to compile, but, you should get the idea from it. The first line constructs a new StringBuilder object from an array of 3 char values. The first, 27, is the ASCII code for ESC. The second line builds the string to send to the printer by prepending the text you want to send with the formatting command the printer uses. I used a StringBuilder in this example simply because it's a versatile solution when you have to start appending long strings of parameter values to your printer commands, such as binary data.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

Generalcontrol instances at designtime Pin
mpff4-Oct-04 20:53
mpff4-Oct-04 20:53 
GeneralRe: control instances at designtime Pin
Dave Kreskowiak4-Oct-04 23:29
mveDave Kreskowiak4-Oct-04 23:29 
GeneralRe: control instances at designtime Pin
mpff4-Oct-04 23:55
mpff4-Oct-04 23:55 
GeneralRe: control instances at designtime Pin
Dave Kreskowiak5-Oct-04 0:13
mveDave Kreskowiak5-Oct-04 0:13 
GeneralRe: control instances at designtime Pin
mpff5-Oct-04 0:58
mpff5-Oct-04 0:58 
GeneralComboBox Pin
4-Oct-04 18:36
suss4-Oct-04 18:36 
GeneralRe: ComboBox Pin
Member 12723814-Oct-04 19:28
Member 12723814-Oct-04 19:28 
GeneralRe: ComboBox Pin
Stefan Troschuetz4-Oct-04 21:11
Stefan Troschuetz4-Oct-04 21:11 
GeneralRe: ComboBox Pin
HahnTech5-Oct-04 7:20
HahnTech5-Oct-04 7:20 
QuestionHow can I export a class of C++ to C#? Pin
ting6684-Oct-04 16:27
ting6684-Oct-04 16:27 
AnswerRe: How can I export a class of C++ to C#? Pin
Paul Lyons4-Oct-04 16:45
Paul Lyons4-Oct-04 16:45 
GeneralRe: How can I export a class of C++ to C#? Pin
Heath Stewart4-Oct-04 16:49
protectorHeath Stewart4-Oct-04 16:49 
AnswerRe: How can I export a class of C++ to C#? Pin
Heath Stewart4-Oct-04 16:50
protectorHeath Stewart4-Oct-04 16:50 
GeneralAssembly paths and assembly versions Pin
Marc Clifton4-Oct-04 15:56
mvaMarc Clifton4-Oct-04 15:56 
GeneralRe: Assembly paths and assembly versions Pin
Heath Stewart4-Oct-04 16:38
protectorHeath Stewart4-Oct-04 16:38 
GeneralRe: Assembly paths and assembly versions Pin
Marc Clifton6-Oct-04 4:20
mvaMarc Clifton6-Oct-04 4:20 
GeneralRe: Assembly paths and assembly versions Pin
Heath Stewart6-Oct-04 5:02
protectorHeath Stewart6-Oct-04 5:02 

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.