Guest User

Untitled

a guest
Aug 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. // Path of input TSV and output PDF files.
  2. intrusive_ptr<Aspose::Cells::System::String> inputTSVFile = new Aspose::Cells::System::String("D:\\Download\\sampleConvertTSVToPDF.tsv");
  3. intrusive_ptr<Aspose::Cells::System::String> outputPDFFile = new Aspose::Cells::System::String("D:\\Download\\outputConvertTSVToPDFDirectly.pdf");
  4.  
  5. // Specify that you want to load TSV file.
  6. intrusive_ptr<Aspose::Cells::ILoadOptions> opts = Aspose::Cells::Factory::CreateILoadOptions(Aspose::Cells::LoadFormat_TabDelimited);
  7.  
  8. // Load your sample TSV file inside the Workbook object using specified LoadOptions.
  9. intrusive_ptr<Aspose::Cells::IWorkbook> wb = Aspose::Cells::Factory::CreateIWorkbook(inputTSVFile, opts);
  10.  
  11. // Save TSV file to PDF directly.
  12. wb->Save(outputPDFFile, Aspose::Cells::SaveFormat_Pdf);
Add Comment
Please, Sign In to add comment