By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,375 Members | 3,001 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,375 IT Pros & Developers. It's quick & easy.

Creating PDF Files Using Visual Basic

P: 46
Hi all,
I need to know how can I create a PDF file using visual basic. If somebody can tell me the step-by-step procedure for that, I will be very thankful. Actually, I have researched and tried some ways but all in vain. It seems I am clueless about it.

Anticipating a quick response....
Jan 29 '08 #1
Share this Question
Share on Google+
7 Replies


lotus18
100+
P: 866
Hi all,
I need to know how can I create a PDF file using visual basic. If somebody can tell me the step-by-step procedure for that, I will be very thankful. Actually, I have researched and tried some ways but all in vain. It seems I am clueless about it.

Anticipating a quick response....
I know that crystal report can export pdf files. If you found a solution to it, please tell me. thanks : )

Rey Sean
Jan 29 '08 #2

9815402440
100+
P: 180
hi
i have the code (project) but i dont know how to upload it
if you can tell me then i can send it


regards
manpreet singh dhillon hoshiarpur
Jan 30 '08 #3

P: 68
hi
i have the code (project) but i dont know how to upload it
if you can tell me then i can send it


regards
manpreet singh dhillon hoshiarpur
u go to www.megashare.com then upload it. send the link here, that link is sent by that site.

Regards,
shuvo2k6
Jan 30 '08 #4

lotus18
100+
P: 866
hi
i have the code (project) but i dont know how to upload it
if you can tell me then i can send it


regards
manpreet singh dhillon hoshiarpur
Where do you want to upload? Here?
Jan 30 '08 #5

9815402440
100+
P: 180
hi

download from following link
http://www.MegaShare.com/350103

password is 123

then use following code to convert. (it converts text files only)

Dim objVBPDF As New VBPDF
Dim i As Integer
objVBPDF.SourceFile = txtSourceFile.Text
objVBPDF.TargetFile = txtTargetFile.Text
objVBPDF.RecordsPerPage = txtRPP
objVBPDF.Width = txtReportWidth
objVBPDF.FontSize = txtFont.Text
For i = 0 To optFont.Count - 1
If optFont(i).Value Then
strFontName = optFont(i).Caption
Exit For
End If
Next
objVBPDF.Font = strFontName
objVBPDF.CreatePDFFile

regards
manpreet singh dhillon hoshiarpur
Jan 31 '08 #6

P: 68
hi

download from following link
http://www.MegaShare.com/350103

password is 123

then use following code to convert. (it converts text files only)

Dim objVBPDF As New VBPDF
Dim i As Integer
objVBPDF.SourceFile = txtSourceFile.Text
objVBPDF.TargetFile = txtTargetFile.Text
objVBPDF.RecordsPerPage = txtRPP
objVBPDF.Width = txtReportWidth
objVBPDF.FontSize = txtFont.Text
For i = 0 To optFont.Count - 1
If optFont(i).Value Then
strFontName = optFont(i).Caption
Exit For
End If
Next
objVBPDF.Font = strFontName
objVBPDF.CreatePDFFile

regards
manpreet singh dhillon hoshiarpur
Thanks for uploading in my sent address. Here VBPDF is a class, so it must have definition.
Feb 1 '08 #7

lotus18
100+
P: 866
Is that working? If so, nice job! This would serve as a future reference : )

Rey Sean
Feb 1 '08 #8

Post your reply

Sign in to post your reply or Sign up for a free account.