Code: Select all
IDocumentImage doc = order.DocumentImage.CreateNew();
doc.Trustee = order.CurrentUser;
doc.OriginalLocation = new Uri(((FileInfo)itm.Properties[PrintJobItemProperty.FileLocation]).FullName);
doc.Description = docName;
doc.DocumentImageTypeID = SoftPro.OrderTracking.Client.DocumentImageType.Attached;
doc.FileType = "PDF";
doc.SubmittedDate = DateTime.Now;