Skip to content

Instantly share code, notes, and snippets.

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

aspose-com-kb

View GitHub Profile
using Aspose.Cells;
using Aspose.Cells.Charts;
using Aspose.Cells.Rendering;
namespace ConvertExcelChartToJPGInCSharp
{
class Program
{
static void Main(string[] args)
{
// Initialize license object
@aspose-com-kb
aspose-com-kb / Convert Excel Chart to JPG in CSharp without Interop.cs
Last active October 9, 2021 11:24
This sample code creates a worksheet with chart and then Saves Excel chart as JPG. For more details refer to https://kb.aspose.com/cells/net/how-to-convert-excel-chart-to-jpg-in-csharp-without-interop/
using Aspose.Cells;
using Aspose.Cells.Charts;
using Aspose.Cells.Rendering;
namespace ConvertExcelChartToJPGInCSharpWithoutInterop
{
class Program
{
static void Main(string[] args)
{
//Initialize the license object
@aspose-com-kb
aspose-com-kb / How to Insert Draft Watermark in PowerPoint Presentation in C#.cs
Last active September 24, 2021 14:35
How to Insert Draft Watermark in PowerPoint Presentation in C#. More details and steps can be found here https://kb.aspose.com/slides/net/how-to-insert-draft-watermark-in-powerpoint-in-c-sharp/
using System;
using Aspose.Slides;
using Aspose.Slides.Export;
namespace WatermarkPPTXinC_Sharp
{
class Program
{
static void Main(string[] args)
{
@aspose-com-kb
aspose-com-kb / ConvertExcelChartToJPGInCSharpWithoutInterop
Last active September 24, 2021 13:52
This program can be used to convert Excel chart to JPG in C# without Interop. For more details visit https://kb.aspose.com/cells/net/how-to-convert-excel-chart-to-jpg-in-csharp-without-interop/
using Aspose.Cells;
using Aspose.Cells.Charts;
using Aspose.Cells.Rendering;
namespace ConvertExcelChartToJPGInCSharpWithoutInterop
{
class Program
{
static void Main(string[] args)
{
// Set Aspose.Cells license before the conversion
@aspose-com-kb
aspose-com-kb / How to Convert PDF to Word in C# Without Interop.cs
Last active September 23, 2021 19:44
How to Convert PDF to Word in C# Without Interop. More details and steps can be found here https://kb.aspose.com/words/net/how-to-convert-pdf-to-word-in-c-sharp-without-interop/
using Aspose.Words;
using System;
namespace PdftoWord
{
class how_to_convert_pdf_to_word_in_c_sharp_without_interop
{
public static void ConvertPDFtoWord(String pdftoword_directory)
{
//Set Aspose license before PDF to Word conversion
Aspose.Words.License AsposeWordsLicense = new Aspose.Words.License();
@aspose-com-kb
aspose-com-kb / How to Add Image Watermark in PPTX Presentation Using C#.cs
Last active November 6, 2021 08:03
This code can be used to add image watermark in PPTX presentation using C#. Refer to this article for more details: https://kb.aspose.com/slides/net/how-to-add-image-watermark-in-pptx-presentation-using-c-sharp/
using System;
using System.Drawing;
using Aspose.Slides;
using Aspose.Slides.Export;
namespace SlidesWatermark
{
class Program
{
static void Main(string[] args)
@aspose-com-kb
aspose-com-kb / How to Create Excel Pie Chart in C#.cs
Last active October 1, 2021 15:10
How to Create Excel Pie Chart in C#. See the detailed topic with steps here https://kb.aspose.com/cells/net/how-to-create-excel-pie-chart-in-c-sharp/
using System;
using System.Drawing;
using System.Windows.Forms;
//Add reference to following namespaces for Aspose.Cells for .NET API
using Aspose.Cells;
using Aspose.Cells.Charts;
namespace CreateExcelPieChart
{
using Aspose.Words;
using Aspose.Words.Drawing;
namespace HowtoAddImageinWordDocumentUsingCsharp
{
class AddImageToWordDOC
{
static void Main(string[] args)
{
// Set license prior to adding image in Word document using C#
@aspose-com-kb
aspose-com-kb / Read Bookmarks in PDF using C#.cs
Last active June 8, 2023 13:37
This code can be used to read bookmarks in PDF using C#. For detailed guide please check https://kb.aspose.com/pdf/net/how-to-read-bookmarks-in-pdf-using-c-sharp/
using System;
// Add reference to Aspose.PDF for .NET API
// Use following namespace to read bookmarks in a PDF File
using Aspose.Pdf;
namespace ReadBookmarksInPDF
{
class Program
{
static void Main(string[] args)
@aspose-com-kb
aspose-com-kb / How to Insert Comment into Word Document using C#.cs
Last active September 29, 2021 18:59
How to Insert Comment into Word Document using C#. More details and steps can be found here https://kb.aspose.com/words/net/how-to-insert-comment-into-word-document-using-c-sharp/
using Aspose.Words;
using System;
namespace InsertCommentinWord
{
class how_to_insert_comment_into_word_document_using_c_sharp
{
public static void InsertComment(String directorypath)
{
//Set Aspose license before importing document.