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
For example, I open a document named "test. Docx" in office, and then I started to run the test code to read the contents of the document, but nothing was read and printed,The test code is as follows:
duckx::Document doc("D:\\test.docx");
doc.open();
std::ostringstream ss;
for (duckx::Paragraph p = doc.paragraphs(); p.has_next(); p.next()) {
for (duckx::Run r = p.runs(); r.has_next(); r.next()) {
printf("content=%s\n", r.get_text().c_str());
}
}
make sure that the file exists on that path.
duckx's current API is not really good in handling errors, so please try this to make sure you're entering the path correctly:
Describe the bug
When a word document is opened, reading the file will fail
The text was updated successfully, but these errors were encountered: