[Mono-bugs] [Bug 655901] New: [UIPrintInteractionController setPrintItem:]: unrecognized selector sent to instance
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Nov 24 22:29:16 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=655901
https://bugzilla.novell.com/show_bug.cgi?id=655901#c0
Summary: [UIPrintInteractionController setPrintItem:]:
unrecognized selector sent to instance
Classification: Mono
Product: MonoTouch
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: Class Libraries
AssignedTo: gnorton at novell.com
ReportedBy: info at sketchmd.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
I am trying to print with MT 3.2
MainDocumentURL points to a local PDF and is of type NSUrl (file://...).
The CanPrint method returns true but assigning it to a PrintItem throws an
Exception below
if(UIPrintInteractionController.CanPrint(MainDocumentURL))
{
UIPrintInfo printInfo = UIPrintInfo.PrintInfo;
printInfo.OutputType = UIPrintInfoOutputType.General ;
printInfo.JobName = "XYZ" ;
printInfo.Duplex = UIPrintInfoDuplex.LongEdge;
UIPrintInteractionController.SharedPrintController.PrintInfo =
printInfo;
UIPrintInteractionController.SharedPrintController.PrintItem =
MainDocumentURL;
}
Exception:
Objective-C exception thrown. Name: NSInvalidArgumentException Reason:
-[UIPrintInteractionController setPrintItem:]: unrecognized selector sent to
instance 0xf138350
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:
Exception:
Objective-C exception thrown. Name: NSInvalidArgumentException Reason:
-[UIPrintInteractionController setPrintItem:]: unrecognized selector sent to
instance 0xf138350
Expected Results:
No Exception
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list