Skip to content

Instantly share code, notes, and snippets.

View aspose-com-kb's full-sized avatar

aspose-com-kb

View GitHub Profile
@aspose-com-kb
aspose-com-kb / Save Excel Workbook to XPS File Format in C#.cs
Last active September 2, 2021 06:34
Save Excel Workbook to XPS File Format in C#. The detailed steps can be found in this topic: https://kb.aspose.com/cells/net/how-to-convert-excel-to-xps-in-c-sharp/
using System;
//Add reference to Aspose.Cells for .NET API
//Use following namespaces to convert Excel to XPS format
using Aspose.Cells;
namespace ConvertExcelToXPS
{
class Program
{
static void Main(string[] args)
@aspose-com-kb
aspose-com-kb / Convert PowerPoint Presentation to XPS Format in C#.cs
Last active September 2, 2021 06:35
Convert PowerPoint Presentation to XPS Format in C#: Find more details about this code sample in the following topic: https://kb.aspose.com/slides/net/how-to-convert-pptx-to-xps-in-csharp-without-interop/
using System;
//Add reference to Aspose.Slides for .NET API
//Use following namespaces to convert PPTX to XPS
using Aspose.Slides;
using Aspose.Slides.Export;
namespace ConvertPPTXToXPS
{
class Program
{
@aspose-com-kb
aspose-com-kb / Create PNG Image from BMP in C#.cs
Last active September 10, 2021 10:00
Create PNG Image from BMP in C#. More details and explanation can be found here https://kb.aspose.com/imaging/net/how-to-create-png-image-from-bmp-in-c-sharp/
using System;
//Use following namespaces to create PNG image
using Aspose.Imaging;
using Aspose.Imaging.ImageOptions;
namespace CreatePNGImage
{
class Program
{
static void Main(string[] args)
using System;
//Use following namespaces to rotate barcode image
using Aspose.BarCode;
using Aspose.BarCode.Generation;
namespace RotateBarCodeImage
{
class Program
{
static void Main(string[] args)
using System;
//Use following namespace to add comment in Visio diagram
using Aspose.Diagram;
namespace AddCommentToVisioDiagram
{
class Program
{
static void Main(string[] args)
{
@aspose-com-kb
aspose-com-kb / Convert Microsoft Project File to XPS in C#.cs
Last active September 14, 2021 10:35
Convert Microsoft Project File to XPS in C#. To learn more about this code gist please check this topic https://kb.aspose.com/tasks/net/how-to-convert-microsoft-project-file-to-xps-in-c-sharp/
using System;
//Use following namespaces to convert Microsoft Project file to XPS
using Aspose.Tasks;
using Aspose.Tasks.Saving;
namespace ConvertMicrosoftProjectFileToXPS
{
class Program
{
static void Main(string[] args)
@aspose-com-kb
aspose-com-kb / Extract Text From Scanned PDF in C#.cs
Last active March 14, 2024 10:50
Extract Text From Scanned PDF in C#. More details and steps can be found here https://kb.aspose.com/ocr/net/how-to-extract-text-from-scanned-pdf-in-c-sharp/
using System;
using System.Collections.Generic;
//Use following namespace to extract text from scanned PDF
using Aspose.OCR;
namespace ExtractTextFromScannedPDFFile
{
class Program
{
@aspose-com-kb
aspose-com-kb / Print PowerPoint Presentation in C#.cs
Created September 16, 2021 14:47
Print PowerPoint Presentation in C#. More details and steps can be found here https://kb.aspose.com/slide/net/how-to-print-powerpoint-presentation-in-c-sharp/
using System;
using Aspose.Slides;
namespace PrintPresentationinC_Sharp
{
class Program
{
static void Main(string[] args)
{
License license = new License();
@aspose-com-kb
aspose-com-kb / How to Convert Word Document to Images in C#.cs
Last active September 24, 2021 16:18
How to Convert Word Document to Images in C#. More details and steps can be found here https://kb.aspose.com/words/net/how-to-convert-word-document-to-images-in-c-sharp/
using Aspose.Words;
using Aspose.Words.Saving;
using System;
namespace KBCodeExamples
{
class How_to_Convert_Word_Document_to_Images_in_C_sharp
{
public static void ConvertWordDocumenttoImages(String wordtoimage_directory)
{
using System.IO;
// Following namespace is required to Create ZIP File in Memory
using Aspose.Zip;
namespace CreateZipFileInMemory
{
class Program
{
static void Main(string[] args)
{