hi,
i m trying to print credit card size personal identification card,
so my template word doc is exact size of credit card, i want to set backgroud for card, after all,
i m exporting it as doc and pdf file, but in pdf file there is no bacgroud picture may be it changes the image position...
this is my code:
Document document = new Document();
document.LoadFromFile("PERKART" + Path.DirectorySeparatorChar + "PERKART.docx", FileFormat.Docx2010);
document.Background.Type = BackgroundType.Picture;
document.Background.Picture = Image.FromFile("PERKART//" + "PERKARTFRONT.JPG");
document.SaveToFile(PERKARTResultPath, Spire.Doc.FileFormat.Docx2010);
document.SaveToFile(PERKARTResultPathPDF, Spire.Doc.FileFormat.PDF);
System.Diagnostics.Process.Start(PERKARTResultPath);
System.Diagnostics.Process.Start(PERKARTResultPathPDF);
document.Close();