问题描述
我在Aspose文档中看到我们可以在Aspose文档(https://apireference.aspose.com/words/net/aspose.words/document/methods/print)上使用Print方法
因此,我创建了我的Aspose文档和一个文档生成器,以便在文档上写一些东西。 之后,我尝试使用打印方法,但他们告诉我该方法不存在。
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("TEST");
doc.Print();
我尝试直接选择PC上的Word文档,但这是相同的问题。您知道为什么我不能使用此Print方法吗?也许我该如何自己添加此方法?
解决方法
请注意,.NET Standard,Xamarin.Android,Xamarin.iOS和Xamarin.Mac API中不提供Aspose.Words for .NET的打印功能。您可以通过.NET Framework使用Document.Print方法。
我与Aspose合作,担任开发人员布道者。