C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2720
Number of posts: 5746

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Get a file from database Posted by pechas on 19 Sept 2007 at 5:11 AM
I am writting a console application. I would like to pick up a file from my sql database by using a filepath that is written in a tabell in the databas. For exampel;
My tabell is named: File_Path
and the value in it are: 2005/10/563/123.xml
How can I pick up that file? I would like to use it by taking that file and make it a pdf.

Thank you

/Pechas
Report
Re: Get a file from database Posted by bradwang on 3 Dec 2007 at 8:26 PM
: I am writting a console application. I would like to pick up a file
: from my sql database by using a filepath that is written in a tabell
: in the databas. For exampel;
: My tabell is named: File_Path
: and the value in it are: 2005/10/563/123.xml
: How can I pick up that file? I would like to use it by taking that
: file and make it a pdf.
:
: Thank you
:
: /Pechas
:

Hello Perchas,

First of all, you need to read the file path from your my sql database which I suppose you are capable of. Then you could load the xml file you have into a DataSet object. Here I have found an article for you: http://www.developerfusion.co.uk/show/4266/ which is using the Crystal Report dlls to generate PDF file from DataSet.

Hope this helps and happy programming...

Brad Wang
.NET Freelancer from China



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.