1. Daryl Foster
  2. PowerBuilder
  3. Friday, 10 November 2017 08:11 AM UTC

Hi,

I'm curious who else is currently using the .Net Assembly target in PB 2017?  And what sort of projects are you using them in?  I've seen some people talking about their .Net Assemblies being using in IIS.  I'm in the process of converting some PB 10 COM components which are used in Word and Outlook Add-Ins to the new .Net Assembly target and I'm wondering if anyone has done anything similar? i.e using the .Net Assemblies on the client rather than server side.

Thanks

Daryl Foster Accepted Answer Pending Moderation
  1. Thursday, 16 November 2017 06:17 AM UTC
  2. PowerBuilder
  3. # 1

Thanks Marco,

My main use for the .Net Assemblies, which other people don't seem to be doing, is to deploy the PB created .Net Assembly to the client (rather than server) and use them as native .Net assemblies from .Net programs running on the client.  Does anybody else have an interest in doing something similar?

Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Friday, 10 November 2017 08:29 AM UTC
  2. PowerBuilder
  3. # 2

Hi Daryl,

My two cents.

I have personally used them to deploy PB NVO to Appeon Powerserver runing on IIS and have the PB code executed in Web or Mobile Appeon apps.

Although .NET assemblies built from PB are not very robust and can be affected by thread-safety issues, they still represent a valuable solutions for deploying PB NVO to the server (Appeon would instead convert the NVO to JS) when you don't want to go for SOAP Web Service targets (which tend to have lower performance).

As far as running a .NET Assembly on the client, in principle they allow you to interface any .NET object, as long as you then make them COM visible using MS Interop.

To this extent, a while back I used one of the newer versions of Crystal Reports (which has discontinued COM and only features .NET SDK) and have reports retrieved or printed through a .NET assembly.

Cheers,

Marco

Comment
  1. Miguel Leeuwe
  2. Wednesday, 15 November 2017 16:28 PM UTC
Hi Marco, about Crystal Reports on .Net. We have done something similar: created a crystal report viewer (visual studio version) to wrap as an activeX.



Do you think that would work on Appeon WEB / PowerServer?

  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 23 April 2019 21:39 PM UTC
Okay, I'll answer myself some years later :)

Yes it works, as long as the client's pc has the activex installed. It won't run by only installing on the server.

Cheers
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.