Page 1 of 1

How to publish with ClickOnce

Posted: Tue May 06, 2025 8:50 pm
by esantacruz
I have finished my first wpf reporting application and everything works fine. Except when I publish my app for my clients and when running on the client machines the app cannot find the report that on the visual studio debug mode works fine. my code is:


var report = new Stimulsoft.Report.StiReport();
report.Load("Reportes/Report.mrt");
report.Dictionary.Variables["InformeGastoId"].ValueObject = InformeGastosID;

report.ShowWithWpf();

The report is on a folder within the project structure. was added and in action I set it up as Embedded Resource and copy always but is not being copied to the user machines, I publish with ClickOnce and the error is:
Could not find part of the path 'c:\users\easp\AppData ... \Reportes\Report.mrt'
Any thoughts?

Re: How to publish with ClickOnce

Posted: Thu May 08, 2025 6:51 am
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.