Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Buenas tardes,

Tengo una duda...
Debo hacer reportes en .net, utilizo C# .rdlc, y los muestro perfectamente en mis paginas .aspx

Pero necesito que desde otra aplicacion que esta desarrollada en clarion se vean los reportes o por lo menos convertilos en un ejecutable para ejecutar el reporte desde el clarion...

POR FAVOR ES URGENTE...

Gracias
Posted
Comments
Espen Harlinn 14-Jun-12 14:21pm    
Mind translating that into English.
Estephanny_777 14-Jun-12 14:32pm    
I have a question,
I have to do a reports in .net i use C# and .RDLC, i show this in reportviewer perfectly in aspx pages.
BUT i need that in another application made in clarion those reports can be execute
PLEASE IS IMPORTANT
thanks

Ola,

Sorry no hablo espanol... :)

There's an easy way to do that, first make your .Net assembly Com Visible in the project setting tab.

and write your code like that:
C#
namespace MyDotNetAssembly
{
   [ClassInterface(ClassInterfaceType.AutoDual)]
   public class ReportHelper
   {
      public void CallDotNet(string parameter)
      {
         // Do what ever you need, call you report etc...
      }
   }
}


On the Clarion side:
CallDotNet                routine
   data
dotNetInterop                  long
   code
   dotNetInterop = CREATE(0, CREATE:OLE)
   dotNetInterop{PROP:Create} = 'MyDotNetAssembly.ReportHelper'
   dotNetInterop{'CallDotnet("report parameters")'}


You may have to play a bit with the GAC. That's it.

Buena suerte.

Valery.
 
Share this answer
 
Comments
Estephanny_777 14-Jun-12 17:37pm    
Hello Valery

I understand a little the english...
If you can, maybe give a little more explanation... Im a amateur
I dont understand exactly what I have to do =(

If you can help me, thats be wonderful =D
This link[^] provides info on mixing .Net and clarion. You need to register to get at the content.

Best regards
Espen Harlinn
 
Share this answer
 
Comments
Sandeep Mewara 14-Jun-12 16:30pm    
Good link. 5!
Espen Harlinn 14-Jun-12 16:31pm    
Thank you, Sandeep :-D
VJ Reddy 14-Jun-12 20:12pm    
Good reference. 5!
Espen Harlinn 14-Jun-12 20:28pm    
Thank you, VJ :-D
Abhinav S 15-Jun-12 2:38am    
5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900