I can't convert pdf to excel in c#
Posted: Fri Jul 05, 2024 5:16 am
Hello Sir
I have the ' Pdf xChange Editor' license and register already.
I'us visual studio 2022 to load C:\Program Files\Tracker Software\PDF Editor\DFXEditCore.x86.dll as refrence.
But when I run the code below
----------------------------------------------------------
PXV_Inst.Init(null,licenseKey);
PXC_Inst PXC_Inst = (PXC_Inst)PXV_Inst.GetExtension("PXC"); //PDF Core Layer
IAFS_Inst AFS_Inst = PXV_Inst.GetExtension("AFS"); //PDF File System
AFS_FileSys = AFS_Inst.DefaultFileSys;
var x = PXV_Inst.ExportConvertersCount;
for (int i = 0; i <= x - 1; i++)
{
IPXV_ExportConverter oexpCv = PXV_Inst.ExportConverter[(uint)i];
if (oexpCv.ID == "conv.exp.office.xls")
{
.........
}
}
The 'ExportConvertersCount' always return 2, what I got is "conv.exp.pdf" and "conv.exp.txt" only, but what I need to export is "conv.exp.office.xls".
which part I lost or got wrong.
From george
I have the ' Pdf xChange Editor' license and register already.
I'us visual studio 2022 to load C:\Program Files\Tracker Software\PDF Editor\DFXEditCore.x86.dll as refrence.
But when I run the code below
----------------------------------------------------------
PXV_Inst.Init(null,licenseKey);
PXC_Inst PXC_Inst = (PXC_Inst)PXV_Inst.GetExtension("PXC"); //PDF Core Layer
IAFS_Inst AFS_Inst = PXV_Inst.GetExtension("AFS"); //PDF File System
AFS_FileSys = AFS_Inst.DefaultFileSys;
var x = PXV_Inst.ExportConvertersCount;
for (int i = 0; i <= x - 1; i++)
{
IPXV_ExportConverter oexpCv = PXV_Inst.ExportConverter[(uint)i];
if (oexpCv.ID == "conv.exp.office.xls")
{
.........
}
}
The 'ExportConvertersCount' always return 2, what I got is "conv.exp.pdf" and "conv.exp.txt" only, but what I need to export is "conv.exp.office.xls".
which part I lost or got wrong.
From george