내 XML 파일 내용은 다음과 같습니다XML 파일을 Doc 파일로 변환하는 방법은 무엇입니까?
<?xml version="1.0"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend! </body>
</note>
나는 문서 파일로 변환해야합니다. 나는 Spire.Doc 구성 요소를 사용하고 있습니다. 그러나 오류 아래주고있다 :
"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index "
내가 코드 아래 사용하고 있습니다 :
Document doc = new Document();
doc.LoadFromFile(textBox1.Text, FileFormat.Xml);
doc.SaveToFile(DocfileLocation, FileFormat.Doc);
변환하는 다른 방법이 있습니까?
스택 오버플로에 오신 것을 환영합니다. 귀하의 질문을 편집했습니다. 이유는 다음과 같습니다. http://meta.stackexchange.com/questions/19190/should-questions-include-tags-in-their -titles –