Windows Phone (Silverlight) 8/8.1에서 .doc 또는 .docx 또는 .rtf 파일 (Word 파일)을 프로그래밍 방식으로 (C# 사용) 만들 수 있습니까? 해당 정보를 찾을 수 없습니다. 감사.WP8에서 프로그래밍 방식으로 .docx 파일 만들기
0
A
답변
0
격리 된 저장소 개념을 통해 만들 수 있다고 생각합니다.
using System.IO;
using System.IO.IsolatedStorage;
쓰기 과정 : -
var appStorage14 = IsolatedStorageFile.GetUserStoreForApplication();
string filename14 = "test.docx";
using (var file = appStorage14.OpenFile(filename14, System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write))
{
using (var writer = new StreamWriter(file))
{
writer.Write("-- : -- : --");
}
}
읽기 프로세스 : - 오피스 허브와 상호 작용 할 사용 가능한 API가 없기 때문에
using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication())
{
using (StreamReader sr = new StreamReader(store.OpenFile("test.docx", FileMode.Open, FileAccess.Read)))
{
string t;
t= sr.ReadToEnd();
MessageBox.Show(t);
}
}
1
아니, 수 없습니다. .docx
파일이 .txt
과 같은 일반 텍스트를 포함하는 파일이 아니기 때문에 다른 대답은 작동하지 않습니다. .doc
파일에 대한 자세한 정보 : http://en.wikipedia.org/wiki/Doc_%28computing%29#Microsoft_Word_Binary_File_Format
관련 문제
- 1. 프로그래밍 방식으로 .pfx 파일 만들기
- 2. 프로그래밍 방식으로 ZIP 파일 만들기
- 3. 프로그래밍 방식으로 .edmx 파일 만들기
- 4. 코르도바 : 프로그래밍 방식으로 wp8에서 소프트 키보드 트리거
- 5. 프로그래밍 방식으로 Windows Phone 7의 docx 열기
- 6. 프로그래밍 방식으로 docx 파일을 doc으로 변환
- 7. 프로그래밍 방식으로 docx 파일의 특정 페이지로 이동
- 8. RTF 템플릿의 .docx 파일 만들기
- 9. 자바에서 프로그래밍 방식으로 tar 파일 만들기
- 10. 프로그래밍 방식으로 명령 파일 만들기/실행
- 11. 프로그래밍 방식으로 Zip 파일 만들기 C++
- 12. Magento 1.7에서 프로그래밍 방식으로 .xls 파일 만들기
- 13. 프로그래밍 방식으로 C++로 Excel 파일 만들기
- 14. 프로그래밍 방식으로 고품질 ico 파일 만들기
- 15. 프로그래밍 방식으로 XSD에서 XML 파일 만들기
- 16. 프로그래밍 방식으로 클라이언트 측에 텍스트 파일 만들기
- 17. wp7/wp8에서 암호화 된 .sdf 파일 만들기
- 18. 프로그래밍 방식으로 사이트 만들기
- 19. 프로그래밍 방식으로 UINavigationController 만들기
- 20. 프로그래밍 방식으로 UINavigationBar 만들기
- 21. 프로그래밍 방식으로 dataList 만들기
- 22. 프로그래밍 방식으로 주문 만들기
- 23. 프로그래밍 방식으로 데이터베이스 만들기
- 24. 프로그래밍 방식으로 UIImageView 만들기
- 25. 프로그래밍 방식으로 CustomField 만들기
- 26. 프로그래밍 방식으로 mapView 만들기
- 27. 프로그래밍 방식으로 인덱스 만들기
- 28. 프로그래밍 방식으로 UISwitch 만들기
- 29. 프로그래밍 방식으로 UISearchDisplayController 만들기
- 30. 프로그래밍 방식으로 뷰 만들기
이 문제에 대한 해결책이 있으십니까? WP8 용 – snober
- 아니요,하지만 Win10 Mobile의 경우 확인하지 않았습니다. –