You can create a Rectangle object and set its BackgroundColor property. Use your Rectangle to initialize your Document.
Public Class Chap0102
Public Shared Sub Main()
Console.WriteLine("Chapter 1 example 2: PageSize")
' step 1: creation of a document-object
Dim pageSize As New Rectangle(144, 720)
pageSize.BackgroundColor = New Color(&Hff, &Hff, &Hde)
'// pageSize.BackgroundColor.BackgroundColor = BaseColor.WHITE
Dim document As New Document(pageSize)
' step 2:
' we create a writer that listens to the document
' and directs a PDF-stream to a file
PdfWriter.getInstance(document, New FileStream("Chap0102.pdf", FileMode.Create))
' step 3: we open the document
' step 4: we Add some paragraphs to the document
For i As Integer = 0 To 4
document.Add(New Paragraph("Hello World"))
Catch de As DocumentException
Catch ioe As IOException
' step 5: we close the document
Give it a try.
Now that you have set up your local git repository, you need to add Azure as a remote for our local repository.
Once you have configured Azure as Git’s remote repository, you will be able to deploy our .NET Core Application.
Continue reading “How To Implement the Git Deployment”
Yeoman is a code generator tool that enables you to create simple software projects. Yeoman works by presenting you with a few questions in a wizard-like command line interface, and then uses your responses to generate the code files for your starter project.
In this article, you will learn how to install Yeoman and install the ASP.NET Core generators for Angular. Then, you will create an ASP.NET Core application with a C# back-end and an Angular Front End.
Continue reading “How To Install Yeoman Code Generators”
.NET Core is a general purpose development platform maintained by Microsoft and the .NET community on GitHub. It is cross-platform, supporting Windows, macOS and Linux, and can be used in device, cloud, and embedded/IoT scenarios.
Continue reading “All about .NET Core”
The following program shows how can Export a Chart from Excel to Picture file like BMP,JPG, GIF etc. Before we create a Chart , we have to fill data in Excel sheet.
Continue reading “Excel Chart Export as Picture file VB.NET”
In the following section you can see How to find the last row data in Excel worksheet or How to find the Used area in a worksheet. For finding last row we are using WorkSheet.UsedRange . It will return the last cell . The follwoing code open an Excel file and read the entire content.
Continue reading “Read entire worksheet in an Excel workbook using VB.net”