Wrox Programmer Forums
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 4th, 2003, 09:54 AM
Registered User
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create a PDF with VB.NET

Is there a way to create a PDF with data from a database in VB.NET with out a 3rd party solution?
Thanks!

 
Old October 11th, 2003, 06:21 PM
Registered User
 
Join Date: Jul 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I haven't tried this, but you may want to check this out:

http://www.dopostback.com/eGo/%7B0.7...file.aspx?ID=7

 
Old October 14th, 2003, 02:49 PM
Authorized User
 
Join Date: Oct 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not sure if you would consider it a third party solution or not but...

There is a version of Crystal Reports that is embedded in VS.net now. No need to buy anything. Well within the capabilities of CR to export it to PDF for you. Especially easy if you already have some experience with CR.

Thanks,
risu
 
Old October 28th, 2003, 09:20 AM
Registered User
 
Join Date: Jul 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

risu,

Can you tell me where I could find information on using CR, and/or any good books out there that might walk me through this?

Thanks
 
Old October 29th, 2003, 11:32 AM
Authorized User
 
Join Date: Oct 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

burchbt,

I have mainly just been living on their forums whenever I do work with CR (not a heck of a lot till now but will be doing more and more soon). They have lots of Technical articles as well that have helped with some problems. The link for them is below and the forum you want is down the page some.

http://support.crystaldecisions.com/...f=devzone_main

I've used this site as well for a reference on how CR integrates with VS.Net. I registered with the site to read the rest of the articles. I don't remember if there was any fee involved. IIRC it was just give a valid email address so they can sell you to mailing lists. Not too sure on that though so don't quote me .

http://www.crystalreportsbook.com/Chapters.asp

Thanks,
Risu

When you do get the CrystalReport up and running try the following bit of code for the export. I have not run it myself so I can not vouch for it's effectiveness but I got it out of my CRfor VS.net class manual.

Code:
Dim myDiskFileDestinationOptions as new DiskFileDestinationOptions()
dim FileName as String
FileName = <your local disk>
myDiskFileDestinationOptions.DiskFileName = FileName

With <your CrystalReport>.ExportOptions
.DestinationOptions = myDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.Diskfile
.ExportFormatType = ExportFormatType.ProtableDocFormat
End With

<your CrystalReport>.Export()
 
Old October 29th, 2003, 01:16 PM
Registered User
 
Join Date: Jul 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks risu!

medwar76,
you might also want to look at the following thread:
http://www.asp.net/Forums/ShowPost.a...&PostID=377711






Similar Threads
Thread Thread Starter Forum Replies Last Post
Pdf in vb.net rajessnit@gmail.com VB.NET 0 November 14th, 2006 01:03 AM
Create pdf files from VB.net hoeknu VB How-To 4 October 27th, 2006 10:03 AM
open pdf within VB.NET saphiroth Pro VB.NET 2002/2003 0 December 16th, 2004 10:12 AM
How to create a Read-Only PDF in C#.NET? jjjooooohhnnn General .NET 1 September 15th, 2004 08:52 AM
Create a PDF with VB.NET medwar76 VS.NET 2002/2003 0 September 4th, 2003 02:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.