Reporting Visual Studio Extension Export License Watermark

2 Answers 16 Views
Programming
Benedikt
Top achievements
Rank 4
Iron
Iron
Iron
Benedikt asked on 13 Aug 2025, 01:18 PM

Hi,

I have the Visual Studio Reporting Extension Installed on my machine.

If I export a pdf from a report with it, i get the license watermark everywhere.
But I have a license and the License Extension tells me its downloaded.

Is this right?
Or is something missing/corrup with my extension?

 

Greetings
Benedikt

2 Answers, 1 is accepted

Sort by
0
Nicholas
Top achievements
Rank 1
Iron
answered on 13 Aug 2025, 09:41 PM | edited on 13 Aug 2025, 09:42 PM

You have to reference the Telerik.Licensing NuGet package in each of your startup assembl(ies) (web app, console app, etc,), even if your Telerik reporting stuff is in a separate DLL that your startup assembl(ies) reference.

For example, if you have FooBar.WebApp that references a project FooBar.Reports that contains all your reports and code to generate PDFs from them by referencing Telerik.Reporting, you also need FooBar.WebApp to reference the Telerik.Licensing even if it doesn't directly use Telerik.Reporting.

Or...you can add a class like this to FooBar.Reporting and just invoke LoadLicense (perhaps in a static constructor)  before using the Telerik stuff. (My extension methods should be self-explanatory)


using System; using System.Linq; using System.Reflection; using Telerik.Licensing;

namespace FooBar.Reports;

public
static class TelerikLicenseHelper { private static bool __licenseLoaded; internal static void LoadLicense(bool validate = true) { if (__licenseLoaded) return; var assembly = typeof(TelerikLicenseHelper).Assembly; assembly.GetCustomAttributes<EvidenceAttribute>() .Select(a => a.Value) .NotNullOrWhiteSpace() .ThrowIf(vs => !vs.Any(), _ => new ApplicationException( $"Cannot find {nameof(EvidenceAttribute)} with populated license key in {assembly}")) .ForEach(s => TelerikLicensing.Register(s)); if (validate)
{
var license = TelerikLicensing.License<Telerik.Reporting.Report>(); if (license?.IsLicenseValid != true) throw new ApplicationException(license?.RuntimeConsoleMessage() ?? "[license is null]"); }

__licenseLoaded = true; } }


 

Benedikt
Top achievements
Rank 4
Iron
Iron
Iron
commented on 14 Aug 2025, 07:56 AM

Hi Nicholas,

I think I know what you mean, but I also think its not quite my problem.

I have a project with just one assembly.
And this has the Nuget package referenced.
Also from code the report works just fine and exports also without watermark.

It is just from the Visual Studio extension preview that it exports with watermark.

What it didnt do before the new licensing system.

With your code snippet, it wont start the preview now. I get this error, but I don't know what license that should be thats missing.
I mean I have Reporting. And from code it works, so doesn't this mean I have all the licenses I need?

0
Petar
Telerik team
answered on 18 Aug 2025, 11:04 AM

Hello Benedikt,

If I understand correctly, the watermarks appear when exporting the report directly from the "Preview" mode of the Visual Studio Report Designer, correct?

If that is the case, it is possible that the licensing assembly may not be recognized by the designer. I recommend copying the `Telerik.Licensing.Runtime.dll` assembly from the `bin` directory of the application that builds correctly (and does not display any watermarks) and placing it in the directory that contains the `devenv.exe.config` file for Visual Studio. By default, this file should be located at:

  • C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE

Then, try reopening Visual Studio so that the licensing assembly can be taken into account.

Could you please try this approach and let me know if it works for you?

If you believe I misunderstood your scenario, I would appreciate it if you could provide any additional details, and I will do my best to assist you further.

Regards,
Petar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Benedikt
Top achievements
Rank 4
Iron
Iron
Iron
commented on 19 Aug 2025, 05:06 AM

Hi Petar,

you got it completely right.

I did try this approach but the watermark still appears sadly.

 

Greetings,

Benedikt

Petar
Telerik team
commented on 21 Aug 2025, 04:07 PM

Hi Benedikt,

Thank you for the confirmation.

This observed behavior looks odd.

Could you please attach a trace listener to the Visual Studio Report Designer and provide the generated log file for further investigation? For guidance on how to create this log file, you can refer to the article Troubleshooting Visual Studio Report Designer. After attaching the trace listener, make sure to reproduce the issue locally so that the necessary information can be stored within the log.

Looking forward to your reply!

Regards,
Petar
Progress Telerik

Tags
Programming
Asked by
Benedikt
Top achievements
Rank 4
Iron
Iron
Iron
Answers by
Nicholas
Top achievements
Rank 1
Iron
Petar
Telerik team
Share this question
or