View previous topic :: View next topic |
Author |
Message |
lucafik
Joined: 05 Feb 2009 Posts: 3
|
Posted: Thu Feb 05, 2009 2:45 pm Post subject: How to include PDF Sharp in my solution? [begginer question] |
|
|
Hello,
i' ve tried with putting pdfsharp.csproj alongside my project in solution but it didnt work? What do I need to do so it could recognize types, such as PdfDocument, XGraphics, XString...
Thanks in advance,
Filip |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Thu Feb 05, 2009 4:00 pm Post subject: |
|
|
Did you add a reference?
After adding the reference, "PdfDocument" will still be unknown in a new source file - but then you can use "Resolve" from the context menu to add the namespace. _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
Soldier-B
Joined: 14 Oct 2008 Posts: 16 Location: USA
|
Posted: Thu Feb 05, 2009 4:17 pm Post subject: |
|
|
In the Visual Studio IDE open the "Project" menu and click "Add Reference". The Add Reference dialog should open. Switch to the "Browse" tab, navigate to where ever you downloaded PDFsharp to and select "pdfsharp.dll". Click "Ok". This will add a reference to the pdfsharp library to your project. |
|
Back to top |
|
|
lucafik
Joined: 05 Feb 2009 Posts: 3
|
Posted: Thu Feb 05, 2009 5:27 pm Post subject: |
|
|
Thanks,
and this dll should be taken from where? Because it still doesn't recognize other types. It does recognize PdfDocument and PdfPage but wont recognize XGraphics and similar?
Filip |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Mon Feb 09, 2009 11:12 am Post subject: |
|
|
lucafik wrote: | and this dll should be taken from where? Because it still doesn't recognize other types. It does recognize PdfDocument and PdfPage but wont recognize XGraphics and similar? |
Click on XGraphics and select Resolve from the context menu (same assembly, but different namespace (another using on top of the file)). _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
lucafik
Joined: 05 Feb 2009 Posts: 3
|
Posted: Tue Feb 10, 2009 2:20 pm Post subject: |
|
|
Thanks! |
|
Back to top |
|
|
|