Update Majorsilence version for .Net framework 4.8 on WinForm #263
Replies: 8 comments 2 replies
-
|
net framework support was dropped since 5 version of RdlEngine. You can see it at https://www.nuget.org/packages/Majorsilence.Reporting.RdlEngine#supportedframeworks-body-tab. You can stay at version 4.18 or upgrade your project to .net 8. |
Beta Was this translation helpful? Give feedback.
-
|
See https://github.com/majorsilence/Reporting/wiki/Majorsilence-Reporting-v5:-Migration,-Breaking-Changes-&-Packaging. This is a new document and still requires additional edits but I believe it covers all the changes at a high level changes. My main focus on the version 5 builds are to modernize and make the core cross platform with a focus on better core performance on linux servers. I don't think there is much that would need to change to add net48 support back. It was removed to simplify the modernization effort. I just don't care to work on net48 myself but PRs to re-add the support are welcome. |
Beta Was this translation helpful? Give feedback.
-
|
390b96f adds net48 support back for the core and winforms projects. Assuming that works well the next nuget publish will be for net48, net8.0, and net10.0. |
Beta Was this translation helpful? Give feedback.
-
|
Version 5.0.18 nuget packages have been published. They include net48, net8.0, and net10.0. See https://www.nuget.org/packages/Majorsilence.Reporting.RdlEngine/5.0.18#supportedframeworks-body-tab Please note that the root namespace in version 5 became Majorsilence.Reporting. For example // version 4 namespace
fyiReporting.RdlViewer.RdlViewer rdlViewer1;
// version 5 namespace
Majorsilence.Reporting.RdlViewer.RdlViewer rdlViewer1;I have not tested net48 support beyond updating the test projects to include net48 in addition to net8.0 and net10.0 and they pass. |
Beta Was this translation helpful? Give feedback.
-
|
Perfect ! I'll advice about my result after some test |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the reimplementation of net48 support !!!
Since many many changes has been implemented since
the 4.1 version I was used to run,
I need suggestion on special special case in order
to be able to set a user datatable for report.
In fact I was used in versione 4.1 to do :
1) _viewer.SourceRdlNoLoad =
report source !* Special call in order non to have
LoadPageIfNeeded() *!
2) _viewer.Parameters =
string of parameters
3)
_viewer.Report.DataSets["dataset
name"].SetData(USER DATA TABLE)
4) _viewer.Rebuild()
In version 5 , when I get the Report address at
step 2 using
Report rap = await
_viewer.Report();
there is inside the task Report Definition a
LoadPageIfNeeded that start the report view ,
so no possibility to change DataSet Tables
Thanks for Yr attention.
Best regards
Ing. Gianni Alberti
***@***.*** ***@***.***
PEC: ***@***.***
/INFORMAZIONI IMPORTANTI E NOTIFICA DI RISERVATEZZA
Le informazioni contenute nel presente messaggio
di posta elettronica sono confidenziali e
riservate al destinatario.
L'accesso alle predette informazioni non e'
autorizzato ai terzi. Qualora Lei non fosse il
destinatario, ne' un dipendente,
né un responsabile designato dal destinatario a
ricevere la Sua posta elettronica, La informiamo
che ne e' vietato qualsiasi uso,
rivelazione, copia e distribuzione a terzi,
nonche' qualsiasi azione diretta od indiretta
posta in essere a tal fine.
Inoltre qualora Lei non fosse il destinatario
designato, e' pregato di informare il mittente
ritrasmettendo una copia del presente
messaggio di posta elettronica con la dicitura
"indirizzo errato" come oggetto e di cancellare il
messaggio originario,
nonche' qualsiasi allegato o copia dello stesso./
…On 07/02/2026 17:58, Peter Gill wrote:
Version 5.0.18 nuget packages have been
published. They include net48, net8.0, and
net10.0. See
https://www.nuget.org/packages/Majorsilence.Reporting.RdlEngine/5.0.18#supportedframeworks-body-tab
Please note that the root namespace in version 5
became Majorsilence.Reporting.
For example
// version 4 namespace
fyiReporting.RdlViewer.RdlViewer rdlViewer1;
// version 5 namespace
Majorsilence.Reporting.RdlViewer.RdlViewer rdlViewer1;
I have not tested net48 support beyond updating
the test projects to include net48 in addition
to net8.0 and net10.0 and they pass.
—
Reply to this email directly, view it on GitHub
<#263 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGDHLHII3PXFM6OAWI5MPOL4KYKSRAVCNFSM6AAAAACT7I3FACVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNZSG43TSNQ>.
You are receiving this because you are
subscribed to this thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Are you able to provide more details? From what I can tell version 4 also calls LoadPageIfNeeded when the Report property is used. See https://github.com/majorsilence/Reporting/blob/v4/RdlViewer/RdlViewer.cs#L471 In the set data example, https://github.com/majorsilence/Reporting/blob/master/Examples/SampleApp2-SetData/SampleApp2-SetData/Form1.cs, I've updated it to have a report viewer instance that uses SourceFldNoLoad and another instance that uses the SetSourceFile method. They both seem to work for me. private async Task ExampleViaSourceRdlNoLoad(string filepath, DataTable dt)
{
rdlViewerSourceRdlNoLoad.SourceRdlNoLoad = await System.IO.File.ReadAllTextAsync(filepath);
rdlViewerSourceRdlNoLoad.Parameters = "";
var rpt = await rdlViewerSourceRdlNoLoad.Report();
await rpt.DataSets["Data"].SetData(dt);
await rdlViewerSourceRdlNoLoad.Rebuild();
}
private async Task ExampleViaSetSourceFile(string filepath, DataTable dt)
{
await rdlViewerSetSource.SetSourceFile(new Uri(filepath));
var rpt = await rdlViewerSetSource.Report();
await rpt.DataSets["Data"].SetData(dt);
await rdlViewerSetSource.Rebuild();
}
|
Beta Was this translation helpful? Give feedback.
-
|
Tks for Yr Answer and Yr examples.
I recoded portion of my Routines that uses
RdlViewer following
Yr example and also I deleted ALL references to
external librarys
and reloaded all nuget packages.
I had to add also a reference to
<dependentAssembly>
<assemblyIdentity
name="System.Resources.Extensions"
publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0"
newVersion="8.0.0.0" />
</dependentAssembly>
since since was required versione 4.0.0.0 : I had
no time to investigate further why.
Following Yr example and libraries reload the
rdlviewer now works properly.
Best regards
Ing. Gianni Alberti
***@***.*** ***@***.***
PEC: ***@***.***
/INFORMAZIONI IMPORTANTI E NOTIFICA DI RISERVATEZZA
Le informazioni contenute nel presente messaggio
di posta elettronica sono confidenziali e
riservate al destinatario.
L'accesso alle predette informazioni non e'
autorizzato ai terzi. Qualora Lei non fosse il
destinatario, ne' un dipendente,
né un responsabile designato dal destinatario a
ricevere la Sua posta elettronica, La informiamo
che ne e' vietato qualsiasi uso,
rivelazione, copia e distribuzione a terzi,
nonche' qualsiasi azione diretta od indiretta
posta in essere a tal fine.
Inoltre qualora Lei non fosse il destinatario
designato, e' pregato di informare il mittente
ritrasmettendo una copia del presente
messaggio di posta elettronica con la dicitura
"indirizzo errato" come oggetto e di cancellare il
messaggio originario,
nonche' qualsiasi allegato o copia dello stesso./
…On 12/02/2026 01:03, Peter Gill wrote:
Since many many changes has been implemented
since
the 4.1 version I was used to run,
I need suggestion on special special case in
order
to be able to set a user datatable for report.
In fact I was used in versione 4.1 to do :
|1) _viewer.SourceRdlNoLoad = |
report source !* Special call in order non
to have
LoadPageIfNeeded() *!
2) _viewer.Parameters =
string of parameters
3)
_viewer.Report.DataSets["dataset
name"].SetData(USER DATA TABLE)
4) _viewer.Rebuild()
In version 5 , when I get the Report address at
step 2 using
Report rap = await
_viewer.Report();
there is inside the task Report Definition a
LoadPageIfNeeded that start the report view ,
so no possibility to change DataSet Tables
Are you able to provide more details?
From what I can tell version 4 also calls
LoadPageIfNeeded when the Report property is used.
See
https://github.com/majorsilence/Reporting/blob/v4/RdlViewer/RdlViewer.cs#L471
In the set data example,
https://github.com/majorsilence/Reporting/blob/master/Examples/SampleApp2-SetData/SampleApp2-SetData/Form1.cs,
I've updated it to have a report viewer instance
that uses SourceFldNoLoad and another instance
that uses the SetSourceFile method. They both
seem to work for me.
private async Task ExampleViaSourceRdlNoLoad(string filepath, DataTable dt)
{
rdlViewerSourceRdlNoLoad.SourceRdlNoLoad = await System.IO.File.ReadAllTextAsync(filepath);
rdlViewerSourceRdlNoLoad.Parameters = "";
var rpt = await rdlViewerSourceRdlNoLoad.Report();
await rpt.DataSets["Data"].SetData(dt);
await rdlViewerSourceRdlNoLoad.Rebuild();
}
private async Task ExampleViaSetSourceFile(string filepath, DataTable dt)
{
await rdlViewerSetSource.SetSourceFile(new Uri(filepath));
var rpt = await rdlViewerSetSource.Report();
await rpt.DataSets["Data"].SetData(dt);
await rdlViewerSetSource.Rebuild();
}
image.png (view on web)
<https://github.com/user-attachments/assets/8b47abf5-f5b2-47fb-a340-0aa84ac0134b>
—
Reply to this email directly, view it on GitHub
<#263 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGDHLHIIFF2KNP25OXB4RE34LO7OLAVCNFSM6AAAAACT7I3FACVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNZXGU2DIMQ>.
You are receiving this because you
commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hello to the entire community, Peter, Andy, and all the contributors to this wonderful project.
I've been using Majorsilence successfully for years in my freeware program, with the latest version of the package, which I think was 4.8 or so... it's a WinForm application.
Today I'd like to update everything to a more recent version, but when I try to download the Majorsilence.Reporting.RdlCreator, Majorsilence.Reporting.RdlEngine, Majorsilence.Reporting.RdlCri, and Majorsilence.Reporting.RdlViewer packages from NuGet, I get the error that my 4.8 target on the .Net Framework doesn't have any assemblies pointing to that framework.
I'm developing for WinForm, and I'd like to understand how I can update and which package to download in my case, because I'm completely lost for it... the instructions on your wiki suggest using NuGet, but then I get an error.
There's also no guidance on what to reference for other files like the old DataProviders.dll, RdlEngineConfig.xml, and others I'm used to...
So basically, after explaining how to update to the latest version I can use, can you also provide me with a precise list of which files to include in the output and reference?
I'd like to thank anyone who can help me, because majorsilence is an integral and fundamental part of my project, and I really want to use the most up-to-date version. For example, I saw that there's a new designer compared to the one I use, and I'd like to have it...
Thanks to anyone who will give me some of their time!
Beta Was this translation helpful? Give feedback.
All reactions