Actually, I am new to c+ +. I wonder if it's possible to open word file using c+ +?
|
C
opening word file using c++? |
|
Dec 7, 2018 11:42 AM
(This post was last modified: Dec 7, 2018 11:43 AM by incognito04.)
Yes, with std:ifstream for reading, std:ofstream for writing or std:fstream for both.
PHP Code (Dec 7, 2018 10:28 AM)knownasknown Wrote: Actually, I am new to c+ +. I wonder if it's possible to open word file using c+ +? this is the library i use for word docs, https://github.com/DocxFactory/DocxFactory
http://sunjester.rf.gd - proxies, logins, scanner results
Dec 7, 2018 12:34 PM
(This post was last modified: Dec 7, 2018 03:04 PM by knownasknown.)
realsunjester, Could you tell me please how to add the library to c++?
(Dec 7, 2018 11:42 AM)incognito04 Wrote: Yes, with std:ifstream for reading, std:ofstream for writing or std:fstream for both. That goes for any text based file. I think the OP wants to integrate MS word into an app for either RTF functionality (Bold, color, font size etc). (Dec 7, 2018 12:34 PM)knownasknown Wrote: realsunjester, Could you tell me please how to add the library to c++? what compiler are you using?
http://sunjester.rf.gd - proxies, logins, scanner results
(Dec 7, 2018 10:28 AM)knownasknown Wrote: Actually, I am new to c+ +. I wonder if it's possible to open word file using c+ +? What are you looking to accomplish? If you have MS word installed, you can use the COM API documentation. It also depends on if you are looking for cross compatibility also. I assume you are using some form of Windows, right? If so, the easiest and fastest solution to do what you need is via COM API and doing it in C#. Here is an example of how to create a docx file in Word using C# https://code.msdn.microsoft.com/office/H...y-0b9e250a If you are looking to do C++ for Linux/OS X etc you can use: https://code.msdn.microsoft.com/office/C...d-28938be1 Good luck with whatever the quest is. (Dec 7, 2018 08:37 PM)realsunjester Wrote: what compiler are you using? I am using visual studio 2010 ultimated . (Dec 8, 2018 11:50 AM)knownasknown Wrote: I am using visual studio 2010 ultimated . Code #pragma comment(lib, "library name goes here")
http://sunjester.rf.gd - proxies, logins, scanner results
|
|
|

