Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET MVC PDF DLL Delphi
Hi.
 
I have a dll made in Delphi and in this dll return some reports.
 
I'm trying to load this dll and load a report in PDF into my MVC application but actually I don't know how i can do it.
 
Any help is welcome.
 
Thanks.
Posted 1-Oct-12 5:08am
Comments
Richard MacCutchan at 1-Oct-12 11:05am
   
You need to give some more detail of what you are trying to do and what results you get. What is the format of the data returned from the DLL and how are you trying to convert it to PDF?
Daniel "Jake" S. at 2-Oct-12 10:08am
   
Actually my dll returns a array of byte. I'm trying to load this array in my MVC application with byte[] and doesn't work.
 

When I try to load it in delphi i've got an access violation error.
 
I'm using this code to import the dll function :
 
[DllImport("mydll.dll", CallingConvention = CallingConvention.StdCall)]
SizeConst=4012)]
public static extern void functionPDF(string param1, string param2, int param3, ref byte[] PDF );
 
Richard MacCutchan at 2-Oct-12 10:24am
   
Well I would suggest you step through this code with your debugger to find out what the values of all your variables are and which one of them is causing the access violation.
Daniel "Jake" S. at 2-Oct-12 10:33am
   
is the PDF variable ... when I try to do the command "SetLength" in delphi
Richard MacCutchan at 2-Oct-12 10:41am
   
I have no idea what that means.
Sergey Alexandrovich Kryukov at 1-Oct-12 12:07pm
   
...and first of all, you need to ask a question.
--SA

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

  Print Answers RSS
0 OriginalGriff 475
1 Maciej Los 339
2 Richard MacCutchan 225
3 BillWoodruff 219
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,759
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,269
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web03 | 2.8.1411028.1 | Last Updated 1 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100