GroupDocsGists
10/24/2017 - 1:22 PM

AddBarCodesPowerPoint.cs

// For complete examples and data files, please go to https://github.com/groupdocsassembly/GroupDocs_Assembly_NET 
//Setting up source open presentation template
                    const String strPresentationTemplate = "Presentation Templates/Barcode.pptx";
                    //Setting up destination open presentation report 
                    const String strPresentationReport = "Presentation Reports/Barcode.pptx";
                    try
                    {
                        //Instantiate DocumentAssembler class
                        DocumentAssembler assembler = new DocumentAssembler();
                        //Call AssembleDocument to generate Report in open presentation format
                        assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strPresentationTemplate), CommonUtilities.SetDestinationDocument(strPresentationReport), DataLayer.GetCustomerData(), "customer");
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex.Message);
                    }