My code is this:
Code: Select all
public bool SaveToPDF(string strSrc, string strDest) {
bool success = false;
try {
CADImage img = new CADImage();
img.UseDoubleBuffering = false;
img.GraphicsOutMode = DrawGraphicsMode.Export;
img.LoadFromFile(strSrc);
img.GetExtents();
CADImport.Export.CADToPDF c2p = new CADImport.Export.CADToPDF(img);
if (System.IO.File.Exists(strDest)) File.Delete(strDest);
c2p.SaveToFile(strDest);
success = true;
} catch (Exception ex) {
}
return success;
}
Please help? Thanks in advance!
EBrown Posts: 1Joined: 57 minutes ago