Click here to Skip to main content
16,005,734 members
Home / Discussions / C#
   

C#

 
GeneralRe: question about arrays Pin
donkaiser19-May-06 5:26
donkaiser19-May-06 5:26 
AnswerRe: question about arrays Pin
donkaiser22-May-06 8:00
donkaiser22-May-06 8:00 
QuestionUrgent: Type casting String Property to String type Pin
kumar.bs19-May-06 4:47
kumar.bs19-May-06 4:47 
AnswerRe: Urgent: Type casting String Property to String type Pin
Josh Smith19-May-06 5:01
Josh Smith19-May-06 5:01 
AnswerRe: Urgent: Type casting String Property to String type Pin
kumar.bs19-May-06 5:06
kumar.bs19-May-06 5:06 
GeneralRe: Urgent: Type casting String Property to String type Pin
Josh Smith19-May-06 5:22
Josh Smith19-May-06 5:22 
GeneralRe: Urgent: Type casting String Property to String type Pin
leppie19-May-06 5:55
leppie19-May-06 5:55 
GeneralRe: Urgent: Type casting String Property to String type Pin
Josh Smith19-May-06 7:04
Josh Smith19-May-06 7:04 
QuestionFileSystemEventHandler arguments question. Pin
aquacadet19-May-06 4:46
aquacadet19-May-06 4:46 
AnswerRe: FileSystemEventHandler arguments question. Pin
Josh Smith19-May-06 4:59
Josh Smith19-May-06 4:59 
AnswerRe: FileSystemEventHandler arguments question. Pin
Stefan Troschuetz19-May-06 5:06
Stefan Troschuetz19-May-06 5:06 
GeneralRe: FileSystemEventHandler arguments question. Pin
aquacadet19-May-06 6:00
aquacadet19-May-06 6:00 
GeneralRe: FileSystemEventHandler arguments question. Pin
Stefan Troschuetz19-May-06 6:34
Stefan Troschuetz19-May-06 6:34 
Questiona question about messagebox ? Pin
cmpeng3419-May-06 4:39
cmpeng3419-May-06 4:39 
AnswerRe: a question about messagebox ? Pin
mav.northwind19-May-06 5:19
mav.northwind19-May-06 5:19 
QuestionProgrammatically creating Reports using Reporting Services Pin
anderslundsgard19-May-06 4:14
anderslundsgard19-May-06 4:14 
Questionhelp printing HTML with C# to printer Pin
dpietro19-May-06 4:14
dpietro19-May-06 4:14 
I have to print the contents of an html file (or stream) to a printer.
I've hunted around a bit and it seems I must use the graphics object to format my lines one at a time to send them to the printer.
In looking at some samples, this particular line of code seems to be common :
ev.Graphics.DrawString(line, printFont, Brushes.Black,
leftMargin, yPos, new StringFormat());

This is a concern to me, as my html has images in it. I dont believe I want to tell the DrawString what color to use.
Probably cause I'm new to dealing with this type of problem, I simply dont see what I really need to do.
Can someone point me to somthing that might help clear my head up?

To restate, I have HTML that I must (thru C# code) send to the windows installed default printer - I just dont see how-to!

Thanks!

-- modified at 10:20 Friday 19th May, 2006
Oh, in looking around some more I see it might be helpful to add that this HTML is being generated via XML/XSL transform inside a web service which has no visual components.

AnswerRe: help printing HTML with C# to printer Pin
BoneSoft19-May-06 4:42
BoneSoft19-May-06 4:42 
GeneralRe: help printing HTML with C# to printer Pin
dpietro19-May-06 5:02
dpietro19-May-06 5:02 
Questionset a background image to my control Pin
Sasuko19-May-06 4:02
Sasuko19-May-06 4:02 
Questioncalling datagridview double click event on button click Pin
abhinish19-May-06 3:38
abhinish19-May-06 3:38 
AnswerRe: calling datagridview double click event on button click Pin
Josh Smith19-May-06 5:08
Josh Smith19-May-06 5:08 
Questionproblem in Rollback operation in deloyment project under c#.net Pin
manusharma19-May-06 3:15
manusharma19-May-06 3:15 
QuestionDisplaying Progress Pin
Rizwan Rathore19-May-06 2:39
Rizwan Rathore19-May-06 2:39 
AnswerRe: Displaying Progress Pin
MohammadAmiry19-May-06 3:26
MohammadAmiry19-May-06 3:26 

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.