NURU DAWUD

NURU DAWUD

  • 1.3k
  • 349
  • 13.8k

C# desktop application( .exe) cann't populate the reporte to ms word

Mar 30 2023 2:26 PM

I have used the above source code. It is fine on visual studio but after changed to .exe file the word templete couldn't change the content. I think the path is on the StartupPath so it makes it by default Read Only file.

installation path = C:\Program Files (x86)\Ocean Ict Center\Setup

path on source code =

string samplePath = Application.StartupPath + Path.DirectorySeparatorChar + "Template.docx";
string docxPath = Application.StartupPath + Path.DirectorySeparatorChar + "Result.docx";

How it can be solved?

You can also show me how to use Report Viewer with Ms Access database with the source code above.

For more the source file and the description found in the first replay, following the link, copy and paste on you browser:


Answers (4)