RasterEdge .NET Imaging SDK provides an easy way to save, print customized image & documents with a wide variety of options. Make sure that you have installed valid printers if you want to print images.
Here is a detailed VB.NET sample for saving and printing images or documents with RasterEdge .NET Imaging SDK. (For C#.NET developers, please go to
Image Saving & Printing for C#.NET. Want to view Image and document in Winforms or Web applications, please go to
Saving & Printing Image in Winforms and
Web Document Image Saving & Printing .)
Imports System.IO
Imports System.Drawing.Printing
Imports RasterEdge.Imaging
This image sdk allows developers to save images or documents into different formats with following VB.NET codes:
Public Function SaveAsBMP(ByVal ImageID As Integer, ByVal FilePath As String) As RasterEdgeImageStatus
Public Function SaveAsGIF(ByVal ImageID As Integer, ByVal FilePath As String) As RasterEdgeImageStatus
Public Function SaveAsPNG(ByVal ImageID As Integer, ByVal FilePath As String) As RasterEdgeImageStatus
Public Function SaveAsJP2(ByVal ImageID As Integer, ByVal FilePath As String) As RasterEdgeImageStatus
Public Function SaveAsJ2K(ByVal ImageID As Integer, ByVal FilePath As String) As RasterEdgeImageStatus
Public Function SaveAsJPEG(ByVal ImageID As Integer, ByVal FilePath As String) As RasterEdgeImageStatus
Public Function SaveAsTIFF(ByVal ImageID As Integer, ByVal FilePath As String, ByVal Compression As TiffCompression)
As RasterEdgeImageStatus
Public Function SaveToHTTP(ByVal ImageID As Integer, ByVal ImageFormat As DocumentFormat, ByVal EncoderParameter
As Integer, ByVal Address As String) As RasterEdgeImageStatus
Public Function PdfCreateFromMultipageTIFF(ImageID As Integer, ByVal PdfFileDest As String, ByVal PDFA As Boolean,
ByVal Title As String, ByVal Author As String, ByVal Subject As String, ByVal Keywords As String, ByVal Creator As String) As
RasterEdgeImageStatus
Public Function SaveAsPDF(ByVal ImageID As Integer, ByVal FilePath As String, ByVal PDFA As Boolean,
ByVal Title As
String, ByVal Author As String, ByVal Subject As String, ByVal Keywords As String, ByVal Creator As String) As
RasterEdgeImageStatus
If you want to print images or documents, make sure that you have installed printer and copy following VB.NET codes:
Public Sub Print(ByVal ImageID As Integer)
Find more user guides with RasteEdge .NET Image SDK using VB.NET sample codings!
Want to install Imaging SDK in Winforms or Web applications, please go to
Use Imaging SDK in Winforms and
Web Document Image Viewer.