[英]convert excel to pdf in BCL Easy PDF SDK 8
我们正在使用bcl easy pdf sdk 8转换文件。 除了excel和html我可以转换的所有其他文件。 我收到错误提示,因为“转换为pdf时出错,无法创建pdf格式副本”。 他们中的任何一个在此Easy PDF软件中都有经验吗? 请帮我。
问候,苏达
我认为您使用的是不正确的转换方法。
请查看以下代码,以获取简单的PDF SDK (C#):
Excel转PDF
using BCL.easyPDF.Printer;
namespace TestPrinter
{
class Program
{
static void Main(string[] args)
{
if(args.Length != 2)
return;
string inputFileName = args[0];
string outputFileName = args[1];
Printer printer = new Printer();
try
{
ExcelPrintJob printjob = printer.ExcelPrintJob;
printjob.PrintOut(inputFileName, outputFileName);
}
catch(PrinterException ex)
{
System.Console.WriteLine(ex.Message);
}
finally
{
printer.Dispose();
}
}
}
}
HTML转PDF
using BCL.easyPDF.Printer;
namespace TestPrinter
{
class Program
{
static void Main(string[] args)
{
if(args.Length != 2)
return;
string inputFileName = args[0];
string outputFileName = args[1];
Printer printer = new Printer();
try
{
IEPrintJob printjob = printer.IEPrintJob;
printjob.PrintOut(inputFileName, outputFileName);
}
catch(PrinterException ex)
{
System.Console.WriteLine(ex.Message);
}
finally
{
printer.Dispose();
}
}
}
}
您为什么不直接与他们的支持团队联系以获得助理?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.