MonoTouch:打印到网络打印机

| 我真的是iPhone开发人员的新手。 我正在评估是针对潜在的应用程序使用Monotouch还是objC。 该应用程序需要能够将图片打印到网络打印机。 我看过几篇关于如何使用可可粉touch / objc的文章。 找不到使用单点触控执行此操作的任何示例。 使用MonoTouch可以做到吗? 这是必须具备的功能。 谢谢     
已邀请:
应该这样做,我已经将其签入: \“ print \”目录中的http://github.com/migueldeicaza/monotouch-samples:
void Print ()
{
    var printInfo = UIPrintInfo.PrintInfo;
    printInfo.OutputType = UIPrintInfoOutputType.General;
    printInfo.JobName = \"My first Print Job\";

    var textFormatter = new UISimpleTextPrintFormatter (\"Once upon a time...\") {
        StartPage = 0,
        ContentInsets = new UIEdgeInsets (72, 72, 72, 72),
        MaximumContentWidth = 6 * 72,
    };

    var printer = UIPrintInteractionController.SharedPrintController;
    printer.PrintInfo = printInfo;
    printer.PrintFormatter = textFormatter;
    printer.ShowsPageRange = true;
    printer.Present (true, (handler, completed, err) => {
        if (!completed && err != null){
            Console.WriteLine (\"error\");
        }
    });
}
    

要回复问题请先登录注册