views:

345

answers:

2

I'm having the following problem using the Visual Studio 2010 Team System Beta 1:

While working on some printing code, I tried to declare a variable of type System.Printing.PrintTicket, but Visual Studio doesn't seem to recognize that the class exists. It appears in the MSDN documentation, and other classes like System.Printing.PrintQueue have variables of type PrintTicket, but even in those cases VS doesn't recognize it as a valid type.

Does anyone knows if that is a bug, or am I missing something??

Thanks...

PD: I have the required reference to the System.Printing.dll file in my project and the required 'using' directive in the class file. As a matter of fact, every class of the System.Printing namespace that I've used works, except for that one.

+1  A: 

Ok, I'm definitely an idiot. The problem was that the PrintTicket object is defined in a different assembly than the rest of the System.Printing namespace. I believe that MS should change that but...

Thats it...

Edit: In response to Ivix question, the Assembly where the PrinTicket is defined is ReachFramework (the filename is ReachFramework.dll)

Kiranu
A: 

which dll is it defined in? please i'm having problem locating that dll

This should be a comment? Not an answer.
Sauron
It's a question. ivix has too little rep to post comments. ivix, you should ask questions as questions, not as answers. People expect to find questions in questions and answers in answers, not questions in answers. Post a new question, and link to this question saying that you need more information.
Welbog