LEADTOOLS Support
Document
Document SDK Questions
Re: The type or namespace name 'PDFDocumentDemo' could not be found (are you missing a using directi
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, May 5, 2013 9:50:17 PM(UTC)
Groups: Registered
Posts: 6
Please do provide a solution for error.
I did use the 'PDFDocumentDemo' reference to use the 'ViewerControl' class and 'MyWord' class.
Thanks in Advance
Niranjan
#2
Posted
:
Monday, May 6, 2013 6:06:57 AM(UTC)
Groups: Registered
Posts: 256
Niranjan,
This probably means that Leadtools.Pdf.dll is not referenced correctly. Please remove it (If it already exist) from the "References" list and add it again.
Does that fix the problem? If not, please give me the exact steps you are taking so I can reproduce the issue here.
#3
Posted
:
Monday, May 6, 2013 8:49:43 PM(UTC)
Groups: Registered
Posts: 6
Hi,
1. I created a new windows project using C#.
2. Then I placed the 'viewercontrol' in the form design.
3. Then I added the required references such as leadtools, leadtools.pdf, CSPDFDocumentDemo_Original and other such required dlls.
4. I have placed the pdfengine.dll in the bin folder of the project.
5. once I try to open the pdf using viewercontrol.setDocument(PDFDocument document, Dictionary<int, MyWord[]> SelectedText),
i receive the above mentioned error once compiled.
as well as the following error:
The type or namespace name 'MyWord' could not be found (are you missing a using directive or an assembly reference?)
Please provide me a solution.
Thanks,
Niranjan
#4
Posted
:
Tuesday, May 7, 2013 5:40:16 AM(UTC)
Groups: Registered
Posts: 256
Niranjan,
It appears you're using some of our demo's classes in your project, such as PDFDocumentDemo.MyWord and PDFDocumentDemo.ViewerControl.ViewerControl.
For such classes, you already have the source code installed with the toolkit, so if you decide to copy from these C# files, it is your responsibility to copy them correctly so that they are referenced properly in your project.
For example, if you change the namespace that the classes are in, you should use the correct namespace when accessing the data types.
If you still have problems, can you provide me with a small sample project (NOT your full application) that shows the issue and put it inside ZIP or RAR file?
IMPORTANT NOTE: If you want to upload any attachments to our forums, do NOT use the "Preview" option because it will cause the attachments to be lost.
LEADTOOLS Support
Document
Document SDK Questions
Re: The type or namespace name 'PDFDocumentDemo' could not be found (are you missing a using directi
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.