You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I opened the Word file in the specified location, it failed to open. Can only open files in fixed locations? For example, files in the build directory?
here is the code.
#include <duckx.hpp>
#include
using namespace std;
int main() {
duckx::Document doc("D:/User/GJB5000/myTest.docx");
doc.open();
std::cout <<"open状态:" <<doc.is_open();
duckx::Paragraph p;
p = doc.paragraphs();
p.add_run("Chinese Chinese \r\n");
p.add_run("italic, ", duckx::none);
p.add_run("bold, ", duckx::bold);
p.add_run("underline, ", duckx::strikethrough);
p.add_run("superscript", duckx::superscript);
p.add_run(" or ");
p.add_run("subscript, ", duckx::subscript);
p.add_run("small caps, ", duckx::smallcaps);
p.add_run("and shadows, ", duckx::shadow);
p.add_run("and of course ");
p.add_run("combine them.", duckx::bold | duckx::italic | duckx::underline |
duckx::smallcaps);
p.add_run("and Chinese Chinese ");
doc.save();
return 0;
}
The text was updated successfully, but these errors were encountered:
When I opened the Word file in the specified location, it failed to open. Can only open files in fixed locations? For example, files in the build directory?
here is the code.
#include <duckx.hpp>
#include
using namespace std;
int main() {
}
The text was updated successfully, but these errors were encountered: