1. Goto Tools->Options
2.Select Project and Solutions-> VC++ Directories
3. Select Executable Directories from the Combo box and add the redist path as selected in snapshot.
4. Select Include files from the Combo box and add the classlib path as selected in snapshot.
5. Select Include files from the Combo box and add the vcl path as selected in snapshot.
6. Select Library files from the Combo box and add the vcl path as selected in snapshot.
You can download the document and application from here: Click Here
Thursday, December 29, 2011
Wednesday, December 21, 2011
Error 6 fatal error C1083: Cannot open type library file: 'msxml.dll': No such file or directory
Replace this line
#import <msxml.dll> named_guids
with this one
#import <msxml.tlb> named_guids
And build the application.
#import <msxml.dll> named_guids
with this one
#import <msxml.tlb> named_guids
And build the application.
Friday, December 9, 2011
Pdf To Post Script
Write this function in a Java Script file and save this file into JavaScript Folder inside Adobe(C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts) with js extension.
function pdftops()
{
var pp = this.getPrintParams();
var path = this.path;
path = path.replace("/\//gi", "");
path = path.replace("/%20/gi", " ");
path = path.replace("/\\/gi", "\/");
var PdfName = path;
var iDotIndex = PdfName.indexOf(".");
PdfName = PdfName.substring(0,iDotIndex);
var OutputFilePath = this.documentFileName;
pp.fileName = PdfName + ".ps";
pp.printerName = "";
this.print(pp);
}
Or you can download java script file from this path
PdfToPs
Now call this function from VB .Net in this way
Private Sub ConverToPostScript(ByVal InputFilePath As String)
Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim jso As Object
Dim PsFilePath As String
gApp = CreateObject("AcroExch.App")
gPDDoc = CreateObject("AcroExch.PDDoc")
If gPDDoc.Open(InputFilePath) Then
jso = gPDDoc.GetJSObject
PsFilePath = System.IO.Path.ChangeExtension(InputFilePath, "ps")
If (System.IO.File.Exists(PsFilePath)) Then
System.IO.File.Delete(PsFilePath)
End If
jso.pdftops()
}
Before start coding in .Net you need to add Arobat dll reference from com component(Adobe Acrobat 9.0 Type Library)
Complete Setup Here Distiller
function pdftops()
{
var pp = this.getPrintParams();
var path = this.path;
path = path.replace("/\//gi", "");
path = path.replace("/%20/gi", " ");
path = path.replace("/\\/gi", "\/");
var PdfName = path;
var iDotIndex = PdfName.indexOf(".");
PdfName = PdfName.substring(0,iDotIndex);
var OutputFilePath = this.documentFileName;
pp.fileName = PdfName + ".ps";
pp.printerName = "";
this.print(pp);
}
Or you can download java script file from this path
PdfToPs
Now call this function from VB .Net in this way
Private Sub ConverToPostScript(ByVal InputFilePath As String)
Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim jso As Object
Dim PsFilePath As String
gApp = CreateObject("AcroExch.App")
gPDDoc = CreateObject("AcroExch.PDDoc")
If gPDDoc.Open(InputFilePath) Then
jso = gPDDoc.GetJSObject
PsFilePath = System.IO.Path.ChangeExtension(InputFilePath, "ps")
If (System.IO.File.Exists(PsFilePath)) Then
System.IO.File.Delete(PsFilePath)
End If
jso.pdftops()
}
Before start coding in .Net you need to add Arobat dll reference from com component(Adobe Acrobat 9.0 Type Library)
Complete Setup Here Distiller
Subscribe to:
Posts (Atom)
Followers
Link
Labels
Agille
(3)
Angular 2
(96)
Architecture
(7)
ASP .Net
(30)
C#/VB .Net
(161)
Entityframework
(11)
General
(33)
Git
(2)
Hosting
(2)
HTML
(4)
Interview
(12)
Interview-Agile
(1)
Interview-Angular
(25)
Interview-ASP .Net
(3)
Interview-C#
(16)
Interview-JavaScript
(1)
Interview-MVC
(30)
Interview-SQL Server
(4)
Interview-WCF
(2)
Islam
(6)
Java Script
(37)
JQuery
(1)
MVC
(53)
NodeJS
(1)
Puzzles
(1)
React-Native
(3)
Security
(1)
Shayri
(10)
SQL Server
(41)
VC++
(5)
WCF
(21)
Web API
(27)
WPF
(21)