VPE and Microsoft Blazor

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

VPE and Microsoft Blazor

Postby starzen » Thu Jun 24, 2021 8:00 pm

testing waters if we can use VPE for our Microsoft Blazor Projects

because they are .net server projects similar to ASP.NET we tried to use the VpeWebProfessional

but when building we get the following error

error CS7069: Reference to type 'Control' claims it is defined in 'System.Web', but it could not be found

i am guessing this is because VPE is not compatible with .NET 5.0 which is .net core.
Also tried with .Net Core 3.1 but same errors

should this be a working environment for VPE?

thanks

Mike
starzen
 
Posts: 30
Joined: Tue Feb 01, 2005 12:23 am
Location: Miami, FL

Re: VPE and Microsoft Blazor

Postby IDEAL Software Support » Thu Jun 24, 2021 8:23 pm

Reference to type 'Control'


"Control" is not available in .NET Core. Therefore VPE can not be used with .NET Core.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: VPE and Microsoft Blazor

Postby starzen » Fri Jun 25, 2021 12:48 am

kind of what i suspected

any plans to support net core? it is the future for containers and cloud instances
starzen
 
Posts: 30
Joined: Tue Feb 01, 2005 12:23 am
Location: Miami, FL

Re: VPE and Microsoft Blazor

Postby IDEAL Software Support » Fri Jun 25, 2021 12:51 pm

We did not take a close look at .NET Core yet. VPE is a component with a Window (the preview). Afaik .NET Core is windowless.

Anyway, it should be possible for you to call the VPE DLL from .NET Core. Use NULL as parent window handle, when calling VpeOpenDoc() (with all the consequences that you can not receive events generated by VPE).

Please let me know how this is working for you. We also have a source code generator created, which can generate declarations for binding the VPE DLL API. We can adjust it to .NET Core in case you should be successful in calling some functions of the VPE API during your tests.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: VPE and Microsoft Blazor

Postby starzen » Fri Jun 25, 2021 3:34 pm

we cant event compile the project. The OpenDoc line generates an error when building with .net core

the error mentioned in the original post is from trying to build a simple project with .net core
starzen
 
Posts: 30
Joined: Tue Feb 01, 2005 12:23 am
Location: Miami, FL

Re: VPE and Microsoft Blazor

Postby IDEAL Software Support » Fri Jun 25, 2021 5:37 pm

Because you are trying to use the VPE .NET component. Call the VPE DLL (e.g. vpep3272.dll) directly.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: VPE and Microsoft Blazor

Postby starzen » Sat Jun 26, 2021 1:13 pm

that would work technically probably but then the issue with not having events would be a problem.
starzen
 
Posts: 30
Joined: Tue Feb 01, 2005 12:23 am
Location: Miami, FL

Re: VPE and Microsoft Blazor

Postby IDEAL Software Support » Sat Jun 26, 2021 2:19 pm

Most documents can be created without handling events. The only event of interest in a windowless application is the AutoPageBreak event. But you can check for page breaks by inquiring the current page number, inserting text and afterwards comparing the last page number with the current one.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 5 guests

cron