* if it possible to create a word docs using wxWidgets in Windows?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
User avatar
whoops
Earned a small fee
Earned a small fee
Posts: 23
Joined: Sat Jun 27, 2015 5:53 am
Location: China

* if it possible to create a word docs using wxWidgets in Windows?

Post by whoops »

i'd ask if it possible to create a word docs using wxWidgets in Windows?
which mean that, if i typed sth. in a wxTextCtrl, and click a wxButton, and generate a default microsoft office 97-2003 .doc file (with plain text, no format information)

1) here is sample window:
Image

2) when i typed sth. in the wxTextCtrl, and click the wxButton "Generate .doc".

3) the application will generate a default(without formatted info.) 97-2003 .doc file (ms office), which look like this:
Image
note that "Calibri" is a default font, and font size also.

Image
:)
 Things being equal, the simplest explanation tends to be the right.

 [ Windows 7 Ultimate x64 | wxWidgets 3.0.2 | Microsoft Visual C++ 2010 Express ]
User avatar
tierra
Site Admin
Site Admin
Posts: 1355
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA

Re: * if it possible to create a word docs using wxWidgets in Windows?

Post by tierra »

Assuming you were to also pull in a 3rd party library that could generate the Word document from raw text, or shell out to a utility to do it, yes, but wxWidgets does not have that ability itself.
User avatar
T-Rex
Moderator
Moderator
Posts: 1249
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine

Re: * if it possible to create a word docs using wxWidgets in Windows?

Post by T-Rex »