Skip to content

Instantly share code, notes, and snippets.

View AsposeCellsBlog's full-sized avatar

AsposeCellsBlog AsposeCellsBlog

  • http://products.aspose.com/cells/
View GitHub Profile
@AsposeCellsBlog
AsposeCellsBlog / Convert_TSV_to_PDF_with_OnePagePerSheet_option.cpp
Last active November 22, 2018 10:10
Convert TSV to PDF with OnePagePerSheet option - C++
// Path of input TSV and output PDF files.
intrusive_ptr<Aspose::Cells::System::String> inputTSVFile = new Aspose::Cells::System::String("D:\\Download\\sampleConvertTSVToPDF.tsv");
intrusive_ptr<Aspose::Cells::System::String> outputPDFFile = new Aspose::Cells::System::String("D:\\Download\\outputConvertTSVToPDFWithOnePagePerSheetOption.pdf");
// Specify that you want to load TSV file.
intrusive_ptr<Aspose::Cells::ILoadOptions> opts = Aspose::Cells::Factory::CreateILoadOptions(Aspose::Cells::LoadFormat_TabDelimited);
// Load your sample TSV file inside the Workbook object using specified LoadOptions.
intrusive_ptr<Aspose::Cells::IWorkbook> wb = Aspose::Cells::Factory::CreateIWorkbook(inputTSVFile, opts);
@AsposeCellsBlog
AsposeCellsBlog / Convert_TSV_to_PDF_Directly.cpp
Created November 22, 2018 09:56
Convert TSV to PDF Directly - C++
// Path of input TSV and output PDF files.
intrusive_ptr<Aspose::Cells::System::String> inputTSVFile = new Aspose::Cells::System::String("D:\\Download\\sampleConvertTSVToPDF.tsv");
intrusive_ptr<Aspose::Cells::System::String> outputPDFFile = new Aspose::Cells::System::String("D:\\Download\\outputConvertTSVToPDFDirectly.pdf");
// Specify that you want to load TSV file.
intrusive_ptr<Aspose::Cells::ILoadOptions> opts = Aspose::Cells::Factory::CreateILoadOptions(Aspose::Cells::LoadFormat_TabDelimited);
// Load your sample TSV file inside the Workbook object using specified LoadOptions.
intrusive_ptr<Aspose::Cells::IWorkbook> wb = Aspose::Cells::Factory::CreateIWorkbook(inputTSVFile, opts);
@AsposeCellsBlog
AsposeCellsBlog / Convert_TSV_to_PDF_with_OnePagePerSheet_option.java
Created November 22, 2018 09:51
Convert TSV to PDF with OnePagePerSheet option - Java
// Directory path for input and output files.
String dirPath = "D:\\Download\\";
// Specify that you want to load TSV file.
LoadOptions opts = new LoadOptions(LoadFormat.TSV);
// Load your sample TSV file inside the Workbook object using specified LoadOptions.
com.aspose.cells.Workbook wb = new Workbook(dirPath + "sampleConvertTSVToPDF.tsv", opts);
// Specify PDF Save Options - One Page Per Sheet
@AsposeCellsBlog
AsposeCellsBlog / Convert_TSV_to_PDF_Directly.java
Created November 22, 2018 09:50
Convert TSV to PDF Directly - Java
// Directory path for input and output files.
String dirPath = "D:\\Download\\";
// Specify that you want to load TSV file.
LoadOptions opts = new LoadOptions(LoadFormat.TSV);
// Load your sample TSV file inside the Workbook object using specified LoadOptions.
com.aspose.cells.Workbook wb = new Workbook(dirPath + "sampleConvertTSVToPDF.tsv", opts);
// Save TSV file to PDF directly.
@AsposeCellsBlog
AsposeCellsBlog / Convert_TSV_to_PDF_with_OnePagePerSheet_option.cs
Created November 22, 2018 09:42
Convert TSV to PDF with OnePagePerSheet option - C#
// Directory path for input and output files.
string dirPath = "D:\\Download\\";
// Specify that you want to load TSV file.
LoadOptions opts = new LoadOptions(LoadFormat.TSV);
// Load your sample TSV file inside the Workbook object using specified LoadOptions.
Aspose.Cells.Workbook wb = new Aspose.Cells.Workbook(dirPath + "sampleConvertTSVToPDF.tsv", opts);
// Specify PDF Save Options - One Page Per Sheet
@AsposeCellsBlog
AsposeCellsBlog / Convert_TSV_to_PDF_Directly.cs
Created November 22, 2018 09:41
Convert TSV to PDF Directly - C#
// Directory path for input and output files.
string dirPath = "D:\\Download\\";
// Specify that you want to load TSV file.
LoadOptions opts = new LoadOptions(LoadFormat.TSV);
// Load your sample TSV file inside the Workbook object using specified LoadOptions.
Aspose.Cells.Workbook wb = new Aspose.Cells.Workbook(dirPath + "sampleConvertTSVToPDF.tsv", opts);
// Save TSV file to PDF directly.
@AsposeCellsBlog
AsposeCellsBlog / Copy_Excel_Range_to_Different_Worksheet.cpp
Created November 22, 2018 07:41
Copy Excel Range to Different Worksheet - C++
// Path of input and output Excel files.
intrusive_ptr<Aspose::Cells::System::String> inputExcelFile = new Aspose::Cells::System::String("D:\\Download\\sampleExcelRange.xlsx");
intrusive_ptr<Aspose::Cells::System::String> outputExcelFile = new Aspose::Cells::System::String("D:\\Download\\outputCopyExcelRangeToDifferentWorksheet.xlsx");
// Load sample Excel file inside workbook object.
intrusive_ptr<Aspose::Cells::IWorkbook> wb = Factory::CreateIWorkbook(inputExcelFile);
// Access first worksheet containing the source range.
intrusive_ptr<Aspose::Cells::IWorksheet> ws = wb->GetIWorksheets()->GetObjectByIndex(0);
@AsposeCellsBlog
AsposeCellsBlog / Copy_Excel_Range_to_Same_Worksheet.cpp
Created November 22, 2018 07:40
Copy Excel Range to Same Worksheet - C++
// Path of input and output Excel files.
intrusive_ptr<Aspose::Cells::System::String> inputExcelFile = new Aspose::Cells::System::String("D:\\Download\\sampleExcelRange.xlsx");
intrusive_ptr<Aspose::Cells::System::String> outputExcelFile = new Aspose::Cells::System::String("D:\\Download\\outputCopyExcelRangeToSameWorksheet.xlsx");
// Load sample Excel file inside workbook object.
intrusive_ptr<Aspose::Cells::IWorkbook> wb = Factory::CreateIWorkbook(inputExcelFile);
// Access first worksheet containing the source range.
intrusive_ptr<Aspose::Cells::IWorksheet> ws = wb->GetIWorksheets()->GetObjectByIndex(0);
@AsposeCellsBlog
AsposeCellsBlog / Copy_Excel_Range_to_Different_Worksheet.java
Created November 22, 2018 07:39
Copy Excel Range to Different Worksheet - Java
// Directory path for input and output files.
String dirPath = "D:\\Download\\";
// Load sample Excel file inside workbook object.
com.aspose.cells.Workbook wb = new Workbook(dirPath + "sampleExcelRange.xlsx");
// Access first worksheet containing the source range.
Worksheet ws = wb.getWorksheets().get(0);
// Access second worksheet where source range to be copied.
@AsposeCellsBlog
AsposeCellsBlog / Copy_Excel_Range_to_Same_Worksheet.java
Created November 22, 2018 07:38
Copy Excel Range to Same Worksheet - Java
// Directory path for input and output files.
String dirPath = "D:\\Download\\";
// Load sample Excel file inside workbook object.
com.aspose.cells.Workbook wb = new Workbook(dirPath + "sampleExcelRange.xlsx");
// Access first worksheet containing the source range.
Worksheet ws = wb.getWorksheets().get(0);
// Create source range object.