Welcome Guest Search | Active Topics | Sign In | Register

Visual Studio 2010 Integration - Windows Form Aplication Options
David Pires
Posted: Thursday, January 6, 2011 11:02:36 AM
Rank: Member
Groups: Member

Joined: 1/6/2011
Posts: 10
Hello,

I'm a developer for VB (currently) and i'm using Visual Studio 2010 Pro, i'm very interested in your product EO.Pdf 2011, as so i downloaded the demo and i have tried to create a simple table in the pdf.

After downloading and installing i have successfully added the dll reference to the project i'm using, since then i have tried to create a pdf file (Hello World).

Steps done:
- Added the reference to the DLL in the project within the Visual Studio

- I have added the imports EO.pdf and EO.pdf.acm to the class where its needed.

- I copied the hello world sub content to the form i created and added it to a button click command.

OK all done.

Problems:
- The library objects (PdfDocument, AcmRender, AcmContent, ...) used in the sub are not being recognized from the library.

- I can see the library in the references inside the project in Visual Studio 2010 but when i set the import for the dll, it does not recognize.

I can not understand why it doesn't recognize the objects.




I would like to know also what's the price for this module.

Thanks in advance.

eo_support
Posted: Thursday, January 6, 2011 11:09:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I am not exactly sure what you mean by "when I set the import for the DLL". Can you try to put your code in a simple blank form, then post the full source code of that form so that we can take a look?

The price for the Library is only $99. It's a one time fee for a permanent license.

Thanks!

David Pires
Posted: Thursday, January 6, 2011 11:25:30 AM
Rank: Member
Groups: Member

Joined: 1/6/2011
Posts: 10
eo_support wrote:
Hi,

I am not exactly sure what you mean by "when I set the import for the DLL". Can you try to put your code in a simple blank form, then post the full source code of that form so that we can take a look?

The price for the Library is only $99. It's a one time fee for a permanent license.

Thanks!




My code is the example in the demo...

in the tiop of the class, added the imports:
''''''''''''''''''''''''''''''''''''''''''''''''''''''
imports EO.pdf
imports EO.pdf.acm

Public Class Form1
...
''''''''''''''''''''''''''''''''''''''''''''''''''''''

at the end of the form class added the sub for the button click:
''''''''''''''''''''''''''''''''''''''''''''''''''''''

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Create a new PdfDocument
Dim doc As New PdfDocument()

'Create a new AcmRender object
Dim render As New AcmRender(doc)

'Create a new text object
Dim text As New AcmText("Hello, world!")

'Render the text
render.Render(text)

'Save the PDF file
doc.Save("output.pdf")
End Sub

''''''''''''''''''''''''''''''''''''''''''''''''''''''

The problem is that when i add the reference to the solution project its all alright, i add the imports, still OK, added the sub with the DLL objects and still all OK (it highlights the object name), the problem is when i click for compilation, it identifies errors in the project and then it doesn't recognize anymore the objects, and the error correction options are only to transform the object as a XDocument or an HTMLDocument... nothing from the library.

Thanks

eo_support
Posted: Thursday, January 6, 2011 11:36:26 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Your code looks perfectly fine to us. The problem appears to be a class name/namespace conflict between our library and another third party library or some other code in your project. I would suggest you to try the following:

1. Try using the full class name. For example, instead of writing:
Dim doc As New PdfDocument()

You can write

Dim doc as New EO.Pdf.PdfDocument()

Note the second version uses the full class name.

2. Try to make a copy of your project, then start to remove contents from your project. For example, you can remove everything else but just a blank test form and see if it works. That may tell you what is triggering the problem. You can also try removing other references to see if it corrects the problem. Usually it's not difficult to find out the root cause once you know what triggered the problem;

3. Sometimes Visual Studio may just messes up the project and it can cause strange behaviors. In that case you can try to re-create your project and see if it helps. You can also try to create a brand new test project and see if the code works correctly there;

If none of these works, then we would like to take a look of your machine remotely if possible. We do not expect this to be our DLL's problem but find out the root cause would help us to help other users if they too run into similar problems.

Thanks!
David Pires
Posted: Thursday, January 6, 2011 12:14:51 PM
Rank: Member
Groups: Member

Joined: 1/6/2011
Posts: 10
I tried to remove other references, left only the EO.pdf reference, still no go.
Build another new project as windows form aplication, added a button to the main form, added the reference to EO.pdf, added the HelloWorld code to the button click sub, all ok... and then on compilation all messed up again. Objects not recognized...

I added a screenshot of the results, before and after pushing the RUN/COMPILE button.


And this is the result, it looks like the DLL cant be recognized anymore.



Thanks
eo_support
Posted: Thursday, January 6, 2011 12:21:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

That is very interesting. Would you be OK to share your desktop to us so that we can take a look? We use Citrix GotoMeetings for remote access. We can create a meeting link for you and all you need to do is to follow that link to join our meeting. You will then be able to share your desktop to us so that we can take a look.

Thanks!
David Pires
Posted: Thursday, January 6, 2011 12:24:14 PM
Rank: Member
Groups: Member

Joined: 1/6/2011
Posts: 10

Ok, i am used to LogMeIn, but i believe it's the same, PM me with the link.
eo_support
Posted: Thursday, January 6, 2011 2:41:03 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please try the following steps and see if it works for you:

1. Right click your project in solution explorer, then select "Properties";
2. Click the "Compile" tab, scroll to the bottom, click "Advanced Compile Options...";
3. Change "Target Framework" from ".NET Framework 4 Client Profile" to ".NET Framework 4";

Thanks!
David Pires
Posted: Thursday, January 6, 2011 3:14:32 PM
Rank: Member
Groups: Member

Joined: 1/6/2011
Posts: 10
Everything working perfectly.

I had to check if changing the from the .NET Client 4.0 to the .NET 4.0 would affect the project but no, everything fine and working perfectly.

Thanks for all the support.


Rating the online Support:

Solving thread: 5/5
-------- Time to Reply: 5/5
-------- Solutions offered: 5/5
-------- Remote support: 5/5

eo_support
Posted: Thursday, January 6, 2011 3:22:09 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Excellent. Thank you very much for confirming the solution works for you. We appreciate you very much for giving us all 5 star ratings. Please tell your friends about our product and service when you have a chance.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.