简体   繁体   English

需要样本代码片段帮助

[英]Sample code snippet help needed

I want to know is it possible to convert XML with a set of instructions to MS word document in C#/VC++ ? 我想知道是否可以将带有一组指令的XML转换为C#/ VC ++中的MS Word文档? ie if XML has line, then we should be able to draw line, if XML contains BOLD,bold the text in doc... If so Can i get set of sample examples? 即如果XML有线,那么我们应该能够画线,如果XML包含粗体,则将文档中的文本加粗...如果可以,我可以得到一组示例示例吗?

without reinventing the wheel, a possible way to achieve this task would be to use XML transformation ie XSLT. 在不费吹灰之力的情况下,完成此任务的一种可能方法是使用XML转换,即XSLT。 You would then have to implement an XSLT engine into your C# / VC++ language. 然后,您将不得不在C#/ VC ++语言中实现XSLT引擎。 Look here for a topic about this. 在此处查找有关此主题。 Then you should find an XSLT stylesheet achieving this the conversion task. 然后,您应该找到一个XSLT样式表来完成此转换任务。 I just googled and found this Best regards 我只是用Google搜索,发现这个最好的问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM