How to publish with ClickOnce

Stimulsoft Reports.WPF discussion
Post Reply
esantacruz
Posts: 1
Joined: Tue May 06, 2025 8:39 pm

How to publish with ClickOnce

Post 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?
Lech Kulikowski
Posts: 7332
Joined: Tue Mar 20, 2018 5:34 am

Re: How to publish with ClickOnce

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply