Click here to Skip to main content
15,916,428 members
Home / Discussions / C#
   

C#

 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
LongRange.Shooter9-Mar-04 10:15
LongRange.Shooter9-Mar-04 10:15 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
hammackj9-Mar-04 11:23
hammackj9-Mar-04 11:23 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
mav.northwind9-Mar-04 20:06
mav.northwind9-Mar-04 20:06 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
LongRange.Shooter10-Mar-04 3:11
LongRange.Shooter10-Mar-04 3:11 
GeneralTab Control - Disabling a TabPage Pin
Ruchi Gupta9-Mar-04 9:04
Ruchi Gupta9-Mar-04 9:04 
GeneralRe: Tab Control - Disabling a TabPage Pin
Heath Stewart9-Mar-04 13:14
protectorHeath Stewart9-Mar-04 13:14 
QuestionHow to convert html file to doc or rtf format Pin
Inam9-Mar-04 7:11
Inam9-Mar-04 7:11 
AnswerRe: How to convert html file to doc or rtf format Pin
Heath Stewart9-Mar-04 8:47
protectorHeath Stewart9-Mar-04 8:47 
There's many ways to do this. Since RTF, for example, is just simple text, you could write your XSLT to output the necessary lines (actually, XSLT can also output binary files, but this gets much more difficult). You can find the RTF specifications on Microsoft's site, as well as other places if you try googling.

To create Word docs, you could do a number of things. You could use the Office PIAs (primary interop assemblies, which is recommended as opposed to making your own interop assemblies) to load the HTML document into word and then save it back out as a Word Document or an RTF document, all without showing the Word UI (it's still started, but not visible until you call Show on the application).

Also, Word 2000, XP, and 2003 all support XHTML - an XML document with the default namespace resembling HTML. You could always generate this instead of HTML (which doesn't necessarily conform to XML standards - nor does it have to in some cases). Word 2003 also has a well-defined schema for Word Documents that is also published on MSDN[^].

Finally, in referene to this and your previous question, there's products out there that can save reports (if you're doing any sort of reporting) to many common formats, such as HTML, PDF, and RTF. Crystal Reports for VS.NET comes with VS.NET and is installed by default. The runtime and your report definitions can be distributed freely so long as you have a valid license for VS.NET, have registered Crystal Reports for VS.NET, and are shipping as part of a Windows Forms application (ASP.NET application have additional restrictions and typically require additional runtime licenses). A cheaper alternative is ActiveReports from Data Dynamics[^].

 

Microsoft MVP, Visual C#
My Articles
GeneralEditing Images on the fly... Pin
Verdant1239-Mar-04 7:08
Verdant1239-Mar-04 7:08 
GeneralRe: Editing Images on the fly... Pin
Heath Stewart9-Mar-04 8:34
protectorHeath Stewart9-Mar-04 8:34 
QuestionHow to convert html file to pdf Pin
Inam9-Mar-04 7:07
Inam9-Mar-04 7:07 
AnswerRe: How to convert html file to pdf Pin
Heath Stewart9-Mar-04 8:40
protectorHeath Stewart9-Mar-04 8:40 
GeneralMultiple Classes and Functions/Methods Pin
thewebmonster9-Mar-04 6:47
thewebmonster9-Mar-04 6:47 
GeneralRe: Multiple Classes and Functions/Methods Pin
LongRange.Shooter9-Mar-04 6:57
LongRange.Shooter9-Mar-04 6:57 
GeneralRe: Multiple Classes and Functions/Methods Pin
Heath Stewart9-Mar-04 7:02
protectorHeath Stewart9-Mar-04 7:02 
Generalserializing a delegate to a non-public method Pin
Judah Gabriel Himango9-Mar-04 6:11
sponsorJudah Gabriel Himango9-Mar-04 6:11 
GeneralRe: serializing a delegate to a non-public method Pin
LongRange.Shooter9-Mar-04 6:35
LongRange.Shooter9-Mar-04 6:35 
GeneralRe: serializing a delegate to a non-public method Pin
Judah Gabriel Himango9-Mar-04 9:17
sponsorJudah Gabriel Himango9-Mar-04 9:17 
GeneralRe: serializing a delegate to a non-public method Pin
LongRange.Shooter9-Mar-04 9:50
LongRange.Shooter9-Mar-04 9:50 
GeneralRe: serializing a delegate to a non-public method Pin
LongRange.Shooter9-Mar-04 6:40
LongRange.Shooter9-Mar-04 6:40 
GeneralBrush that does not mix with the background color Pin
Manobal9-Mar-04 6:08
Manobal9-Mar-04 6:08 
GeneralRe: Brush that does not mix with the background color Pin
Heath Stewart9-Mar-04 6:25
protectorHeath Stewart9-Mar-04 6:25 
GeneralRe: Brush that does not mix with the background color Pin
Manobal9-Mar-04 6:33
Manobal9-Mar-04 6:33 
QuestionChanging permission on a folder from C#? Pin
Xiangyang Liu 刘向阳9-Mar-04 2:45
Xiangyang Liu 刘向阳9-Mar-04 2:45 
AnswerRe: Changing permission on a folder from C#? Pin
Matthew Hazlett9-Mar-04 5:12
Matthew Hazlett9-Mar-04 5:12 

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.