This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create TxtLoadOptions class object | |
Aspose.Cells.TxtLoadOptions options = new Aspose.Cells.TxtLoadOptions(); | |
// Load the TXT file | |
Workbook wb = new Workbook("input.txt", options); | |
// Save as XLSX | |
wb.Save("Excel.xlsx", Aspose.Cells.SaveFormat.Xlsx); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Specify conversion settings. | |
Aspose.Gis.ConversionOptions options = null; | |
// This options assigns Wgs84 to the destination layer. | |
if (Aspose.Gis.Drivers.Shapefile.SupportsSpatialReferenceSystem(Aspose.Gis.SpatialReferencing.SpatialReferenceSystem.Wgs84)) | |
{ | |
options = new Aspose.Gis.ConversionOptions() | |
{ | |
DestinationSpatialReferenceSystem = Aspose.Gis.SpatialReferencing.SpatialReferenceSystem.Wgs84, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize a MemoryStream class object | |
MemoryStream stream = new MemoryStream(); | |
// Load the input Word document | |
Aspose.Words.Document document = new Aspose.Words.Document("input.docx"); | |
// Write the intermediate file to a stream | |
document.Save(stream , Aspose.Words.SaveFormat.Pdf); | |
// Load the intermediate PDF file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the input OST file | |
com.aspose.email.PersonalStorage ost = com.aspose.email.PersonalStorage.fromFile(dataDir + "SampleOstFile.ost"); | |
// Save the PST file | |
ost.saveAs("output.pst", com.aspose.email.FileFormat.Pst); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the input FBX file | |
com.aspose.threed.Scene document = new com.aspose.threed.Scene("test.fbx"); | |
// Initiate StlSaveOptions class object | |
com.aspose.threed.StlSaveOptions options = new com.aspose.threed.StlSaveOptions(); | |
// Convert FBX to STL file | |
document.save("test.stl", options); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load masters from any existing diagram, stencil or template | |
String visioStencil = "Basic Shapes.vss"; | |
String rectangleMaster = "Rectangle"; | |
String connectorMaster = "Dynamic connector"; | |
int pageNumber = 0; | |
double width = 1; | |
double height = 1; | |
double pinX = 4.25; | |
double pinY = 9.5; | |
// Define values to construct the hierarchy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace CreateFlowchart | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
//schema for the diagram to be created | |
Input diagramObject = new Input() | |
{ | |
InputRectangles = new List<InputRectangle>() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the input TXT file | |
Workbook workbook = new Workbook("input.txt"); | |
// Convert TXT to JSON | |
workbook.Save("XML.xml", Aspose.Cells.SaveFormat.Xml); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize an HTML document from the file | |
var document = new com.aspose.html.HTMLDocument("spring.html"); | |
// Initialize ImageSaveOptions | |
var options = new com.aspose.html.saving.ImageSaveOptions(com.aspose.html.rendering.image.ImageFormat.Jpeg); | |
// Convert HTML to JPG | |
com.aspose.html.converters.Converter.convertHTML(document, options, "spring-output.jpg"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the source OST file from the disk | |
using (Aspose.Email.Storage.Pst.PersonalStorage personalOSTStorage = Aspose.Email.Storage.Pst.PersonalStorage.FromFile("Sample.ost")) | |
{ | |
// Conver OST to PST | |
personalOSTStorage.SaveAs("ConvertedOst.pst", Aspose.Email.Storage.Pst.FileFormat.Pst); | |
} |
NewerOlder