Type 'License' is not defined in VB

First, I have successfully build latest VB samples downloaded from Git at my environment.

After that, I tried to copy the sample code to my VB windows Form application.
I got following error after I copied utilties.vb and ViewGenerator.vb, added reference and updated all packages.
Error BC30002 Type ‘License’ is not defined. Utilties.vb

I compared my project and sample project, the sample project will generate license class in a temporary VB file from metadata.

What I missed?

Thanks
Herbert





Hi Herbert,


Thanks for taking interest in GroupDocs.Viewer for .NET.

Can you please share with us the sample application/code to reproduce the issue at our end? We shall be looking forward to your response.

Warm Regards

I have attached a VS2015 project which can reproduce the problem.
I summarized the steps to create it below
1)create a windows form vb project
2)add viewer as reference
3)download other related modules via nuget
4)update app.config based on the sample program.
5)copy vb files from sample program

Let me know if you need any other information
Thanks
Herbert

Hi Herbert,


Thanks for sharing the details with us.

Please try the below code to apply the license and share your feedback with us.

Dim lic As New Global.GroupDocs.Viewer.License()
lic.SetLicense(licensePath)

Looking forward to your response.

Warm Regards

It works.

Thanks
Herbert

Hi Herbert,


Thanks for your feedback.

Warm Regards