PDF Converter VB.NET Library
Create PDF from CSV in VB.NET
Help VB.NET Users to Create PDF Document from CSV File in VB.NET Application
- CSV file to adobe PDF converter component for Visual Basic .NET
- C# tutorial guide: How to convert csv to PDF using C#
- Batch convert CSV formats to adobe PDF files in Visual Studio .NET
-
convert rich text to pdf c#,
c# convert word to pdf programmatically free,
convert pdf to multipage tiff c#,
convert image to pdf using c#,
how to convert pdf to text in asp net c#,
pdf to image conversion in c#.net,
convert tiff to pdf c#.
- Able to create PDF from CSV in .NET WinForms and ASP.NET class
- CSV files are saved to PDF documents by keeping original layout
- Able to saving or removing cell border
- Support .NET WinForms, ASP.NET MVC in IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke), SharePoint
-
asp net display image from file path,
embed pdf in mvc view,
asp.net core pdf preview,
asp.net pdf viewer free,
asp net remove text from pdf javascript,
how to edit pdf file in asp.net c#,
asp.net itextsharp add image to pdf.
- Supports converting multiple sheets CSV file to one PDF in VB.NET
- Online source codes are offered for using in VB.NET class application
- Access to free .NET SDK library download
VB.NET Sample Code for Converting CSV to PDF
How to VB.NET: Convert single csv file to PDF
VB.NET demo code for creating PDF document from CSV format.
'csv convert to pdf(file to file)
Dim doc As CSVDocument = New CSVDocument("C:\dmeo.csv")
doc.ConvertToDocument(DocumentType.PDF, "C:\output.pdf")
|
'csv convert to pdf(Stream to Stream)
Dim inputFilePath As String = "C:\demo.csv"
Dim arr() As Byte = File.ReadAllBytes(inputFilePath)
Dim inputStream As MemoryStream = New MemoryStream(arr)
Dim doc As CSVDocument = New CSVDocument(inputStream)
Dim outputStream As MemoryStream = New MemoryStream()
doc.ConvertToDocument(DocumentType.PDF, outputStream)
|
How to VB.NET: Convert two or multiple CSV files to PDF(batch convert)
Following demo codes will show how to convert csv files to pdf documents.
Dim inputDirectory As String = "C:\input\"
Dim outputDirectory As String = "C:\Output\"
Dim files() As String = Directory.GetFiles(inputDirectory, "*.csv")
'convert csv document to pdf one by one.
For Each filePath As String In files
Dim doc As CSVDocument = New CSVDocument(filePath)
Dim startIdx As Integer = filePath.LastIndexOf("\")
Dim endIdx As Integer = filePath.LastIndexOf(".")
Dim docName As String = filePath.SubString(startIdx + 1, endIdx - startIdx - 1)
' Convert it to PDF document.
doc.ConvertToDocument(DocumentType.PDF, outputDirectory + docName + ".pdf")
Next
|
How to VB.NET: Combine multiple CSV files, and convert to PDF
Following is VB.NET demo code for csv files to PDF conversion.
Dim files() As String = { "C:\demo1.csv, C:\demo2.csv, C:\demo3.csv" }
Dim outputFilePath As String = "C:\output.pdf"
Dim streams As List(Of MemoryStream) = New List(Of MemoryStream)()
For Each filePath As String In files
Dim doc As CSVDocument = New CSVDocument(filePath)
Dim outputStream As MemoryStream = New MemoryStream()
' Convert it to PDF document.
doc.ConvertToDocument(DocumentType.PDF, outputStream)
streams.Add(outputStream)
Next
PDFDocument.CombineDocument(streams, outputFilePath)
|
How to VB.NET: Insert CSV file into pdf document, and create a new PDF file
Following is VB.NET demo code to Insert csv file to PDF at specific location.
Dim filePath As String = "C:\demo.csv"
Dim doc As CSVDocument = New CSVDocument(filePath)
Dim stream As MemoryStream = New MemoryStream()
doc.ConvertToDocument(DocumentType.PDF, stream)
Dim pdf As PDFDocument = New PDFDocument(stream)
Dim pageCount As Integer = pdf.GetPageCount()
Dim pages List(Of BasePage) = New List(Of BasePage)()
For i As Integer = 0 To pageCount - 1
pages.Add(pdf.GetPage(i))
Next
Dim outputPdf As String = "C:\output.pdf"
Dim desDoc As PDFDocument = New PDFDocument(outputPdf)
Dim insertLocation As Integer = 2
desDoc.InsertPages(pages.ToArray(), insertLocation)
desDoc.Save("C:\desDocument.pdf")
|