71 / 69 / 19
Регистрация: 13.12.2011
Сообщений: 274
|
||||||||||||||||
1 | ||||||||||||||||
Создание word-отчета (*.doc) в WPF24.02.2012, 00:52. Показов 21377. Ответов 11
Метки нет (Все метки)
Какие методики создания файлов формата *.doc есть в VS2010? Попытки поиска адекватного рабочего примера не увенчались успехом. :-(
Сторонние компоненты использовать не хотелось бы. Добавлено через 1 час 9 минут Отвечу сам на свой вопрос! Нашел хороший пример! Для этого нам надо: 1) Зайти в "Проект" - "Добавить ссылку" 2) На вкладке COM выбрать "Microsoft Word хх.х Object Library"
Далее (пример по клику на кнопку):
5
|
24.02.2012, 00:52 | |
Ответы с готовыми решениями:
11
Создание отчетов в формате doc,docx WPF Создание отчета .doc / .docx на основе шаблона Создание ms word файла (*.doc) из c++ Создание отчета в Word |
50 / 40 / 5
Регистрация: 30.06.2010
Сообщений: 1,191
|
|
07.07.2013, 15:02 | 2 |
ошибка
0
|
23 / 12 / 2
Регистрация: 23.08.2010
Сообщений: 100
|
|
07.07.2013, 18:01 | 3 |
1
|
50 / 40 / 5
Регистрация: 30.06.2010
Сообщений: 1,191
|
||||||
10.07.2013, 07:18 | 4 | |||||
Вставил код с добавлением колонтитула перед созданием таблицы (перед // Insert a new table with 9 rows and 4 columns.)
документ вроди бы открывается до этого куска кода, а закрывается после него... В чём тогда проблема?
0
|
71 / 69 / 19
Регистрация: 13.12.2011
Сообщений: 274
|
||||||
10.07.2013, 08:22 [ТС] | 5 | |||||
Стоп. А где инициализация wapp? Приведенный мною пример не полон. Это только образец.
Вот пример моего проекта:
0
|
50 / 40 / 5
Регистрация: 30.06.2010
Сообщений: 1,191
|
|
10.07.2013, 09:45 | 6 |
Твой пример у меня работает отлично. Но вставив кусок кода, появляется ошибка. Как можно инициализировать wapp?
Добавлено через 46 секунд Если что, у меня 13 ворд
0
|
71 / 69 / 19
Регистрация: 13.12.2011
Сообщений: 274
|
|
10.07.2013, 10:19 [ТС] | 7 |
ProstoMad, скиньте свой проект - я посмотрю.
0
|
50 / 40 / 5
Регистрация: 30.06.2010
Сообщений: 1,191
|
||||||
10.07.2013, 11:02 | 8 | |||||
0
|
71 / 69 / 19
Регистрация: 13.12.2011
Сообщений: 274
|
|
10.07.2013, 11:07 [ТС] | 9 |
ProstoMad, лучше весь проект, а не код. Заархивируйте и залейте сюда.
0
|
50 / 40 / 5
Регистрация: 30.06.2010
Сообщений: 1,191
|
|
10.07.2013, 11:20 | 10 |
Вот архив с проектом
0
|
71 / 69 / 19
Регистрация: 13.12.2011
Сообщений: 274
|
|||||||||||
10.07.2013, 12:09 [ТС] | 11 | ||||||||||
Вот Ваш рабочий код:
Подправили соответственно: P.S. Однако пишите на WinForm, но вопросы в ветке WPF...
1
|
50 / 40 / 5
Регистрация: 30.06.2010
Сообщений: 1,191
|
|
10.07.2013, 12:32 | 12 |
ну на сколько я понимаю тут это не имеет значение. Зачем создавать много тем, когда есть похожая.
0
|
10.07.2013, 12:32 | |
10.07.2013, 12:32 | |
Помогаю со студенческими работами здесь
12
Создание отчета в MS WORD Создание отчета Word Создание отчета в Word Создание отчёта в Word Создание отчета в Word Создание отчета в Word Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |