Andreas Reese
|
Posted: 06/01/2005, 3:52 PM |
|
Hello,
I am trying to integrate cete's DynamicPDF for Net into my application,
but I have no clue how to make needed references to the assembly inside
CCS.
When I use VS it works fine, but CCS overwrites the vbproj everytime
when it builds the appliction.
> Imports cete.DynamicPDF
> Imports cete.DynamicPDF.PageElements
.... and then it fails ... can't find namespace for DynamicPDF.
Copying the dll to the application's bin folder didn't work.
Thanks for your time and your help,
Andy Reese
|
|
|
Tuong Do
|
Posted: 06/01/2005, 5:53 PM |
|
Hi Andreas,
You need to copy the Dll to the apllication bin folder and then on your page
say if your page is EmployerList
Then in the very first line of the page "EmployerList.aspx.vb" add the 2
lines
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
After adding it should look like this
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
'Using Statement @1 Bla Bla
Imports System
Imports System.Collections
Bla Bla ...
In the On Initialize View event of your page add the following codes
Dim MyDocument As Document = New Document()
Dim MyPage As ceTe.DynamicPDF.Page = New ceTe.DynamicPDF.Page()
MyPage.Elements.Add(New Label("Hello World!", 0, 0, 100, 12, Font.Helvetica,
12))
MyDocument.Pages.Add(MyPage)
MyDocument.DrawToWeb(Me)
"Andreas Reese" <reese@calistodesign.de> wrote in message
news:d7le78$bh0$1@news.codecharge.com...
> Hello,
>
> I am trying to integrate cete's DynamicPDF for Net into my application,
> but I have no clue how to make needed references to the assembly inside
> CCS.
>
> When I use VS it works fine, but CCS overwrites the vbproj everytime when
> it builds the appliction.
>
>> Imports cete.DynamicPDF
>> Imports cete.DynamicPDF.PageElements
>
>
>
> ... and then it fails ... can't find namespace for DynamicPDF.
> Copying the dll to the application's bin folder didn't work.
>
> Thanks for your time and your help,
>
> Andy Reese
|
|
|
Tuong Do
|
Posted: 06/01/2005, 5:57 PM |
|
Opps,
Your page might not compile since your have not got your Dll in the
references
Go back to your project and add a references to your the same dlls that you
have copy to the bin directory.
"Andreas Reese" <reese@calistodesign.de> wrote in message
news:d7le78$bh0$1@news.codecharge.com...
> Hello,
>
> I am trying to integrate cete's DynamicPDF for Net into my application,
> but I have no clue how to make needed references to the assembly inside
> CCS.
>
> When I use VS it works fine, but CCS overwrites the vbproj everytime when
> it builds the appliction.
>
>> Imports cete.DynamicPDF
>> Imports cete.DynamicPDF.PageElements
>
>
>
> ... and then it fails ... can't find namespace for DynamicPDF.
> Copying the dll to the application's bin folder didn't work.
>
> Thanks for your time and your help,
>
> Andy Reese
|
|
|
Andreas Reese
|
Posted: 06/02/2005, 11:17 AM |
|
Thank you for quick answer, but to add references inside codecharge is
exactly my main problem, it is no problem with VS. So how can I do this
inside ccs?
(Before my first post I included the mentioned import statements and
copied the dll to my app's bin folder, and after some experiments I
asked here for a solution. )
Tuong Do schrieb:
> Opps,
> Your page might not compile since your have not got your Dll in the
> references
>
> Go back to your project and add a references to your the same dlls that you
> have copy to the bin directory.
|
|
|
peterr
Posts: 5971
|
Posted: 06/02/2005, 11:23 AM |
|
Andreas,
Indeed this feature is not quite clear. Please click on your project name in the Project Explorer panel, then in the Properties panel you should the "References" property where you can add those references.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
Andreas Reese
|
Posted: 06/03/2005, 1:43 AM |
|
Peter,
Thank you. Now I know how to add references ;).
Now I got new possibilities and new problems ..
CCS complaints about "Label not unique" Imported from Namespaces or
Types "ceTe.DynamicPDF.PageElements, System.Web.UI.WebControls".
But I guess this is no ccs problem.
> Andreas,
> Indeed this feature is not quite clear. Please click on your project name in
> the Project Explorer panel, then in the Properties panel you should the
> "References" property where you can add those references.
> _________________
> Peter R.
> YesSoftware Forums Moderator
> For product support please visit http://support.yessoftware.com
> ---------------------------------------
|
|
|
peterr
Posts: 5971
|
Posted: 06/03/2005, 2:38 AM |
|
It's difficult to debug a program that we've never seen, but it seems that you added such code to your page:
Imports cete.DynamicPDF
Imports cete.DynamicPDF.PageElements
In this case the Label class from cete.DynamicPDF.PageElements may conflict with the Label from System.Web.UI.WebControls
And if this is true then you should remove this code and instead directly reference the PDF controls within the page, like:
Dim Label1 As cete.DynamicPDF.PageElements.Label
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
Andreas Reese
|
Posted: 06/03/2005, 4:39 PM |
|
That's it. Thank you.
|
|
|
Deepa_vasu
|
Posted: 06/08/2005, 10:48 PM |
|
Hello All,
I am working on porting of MPEG4 AAC code from VC++ to CCS.
I am facing a problem here. Few definitions of the functions are declared in dll file. When I try to run the same code in CCS gives a compiler error saying that the definition is not found. Is there any way that I can add dll file(in CCS) and run the same code in CCS as in VC++? Please help me.
Thanx
Deepa
|
|
|
Tuong Do
|
Posted: 06/08/2005, 11:38 PM |
|
Hi Deepa,
If you have the error while you public/compile then you need to add the
reference to the Dll file
If Publishing/compile does not give you the error but giving the error while
you run the page then you need to put the dll file the application bin
directory.
"Deepa_vasu" <Deepa_vasu@forum.codecharge> wrote in message
news:842a7d84a66894@news.codecharge.com...
> Hello All,
>
> I am working on porting of MPEG4 AAC code from VC++ to CCS.
>
> I am facing a problem here. Few definitions of the functions
> are
> declared in dll file. When I try to run the same code in CCS gives a
> compiler
> error saying that the definition is not found. Is there any way that I can
> add
> dll file(in CCS) and run the same code in CCS as in VC++? Please help me.
>
> Thanx
>
> Deepa
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
|