0
的目前我有这个测试代码PDFClown .NET打开Windows资源管理器,而不是指定路径
File file = new File();
Document document = file.Document;
Page page = new Page(document);
document.Pages.Add(page);
PrimitiveComposer composer = new PrimitiveComposer(page);
composer.SetFont(new StandardType1Font(document, StandardType1Font.FamilyEnum.Courier, true, false), 32);
composer.ShowText("Hello World!", new PointF(32, 48));
composer.Flush();
file.Save("test.pdf", SerializationModeEnum.Incremental);
System.Diagnostics.Process.Start("explorer", System.IO.Directory.GetParent(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName).ToString());
我怎么能打开一般的Windows资源管理器另存为的提示而不是保存到硬盘代码路径“检验.pdf “? (在file.save()
)
感谢
这是非常好的,但它打开了两个另存为对话框,一个没有文件名,然后当我在其中打开另一个名称字段中的完整路径,然后我点击保存并保存在正确的位置;一个对话框会更好 – Jon0149
@ Jon0149使用我编辑的代码。旧的有两个ShowDialog – NicoRiff
工作完美谢谢:D – Jon0149