in

Microsoft Philippines Community

A community for users, customers, and partners of Microsoft products in the Philippines :)

Can pdf or any other file format be attach to vb.net winfirm applications.???

Last post 01-21-2010 10:16 AM by epgirang. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-21-2010 9:14 AM

    Can pdf or any other file format be attach to vb.net winfirm applications.???

    Hi...

    I'm creating a system and my boss just ask me if it would be possible to add/attach a file into the system that i'm creating. 

    The odd thing is that I'm creating a winform application that have no e-mail sending capability.  What he only wants is to attach a specific file directly into the record of a person.  Is this thing possible.?? Attaching a file into the data of a specific record.??

     Front End: Visual Baisc.net

    Back End: SQL Express

     File attachment: PDF or any type of files

    Please reply ASAP for any possibilities and ideas regarding this matter..

    Thanks..Smile

  • 01-21-2010 10:16 AM In reply to

    • epgirang
    • Top 200 Contributor
      Male
    • Joined on 01-24-2007
    • Middle-Earth
    • Posts 172
    • Points 1,836

    Re: Can pdf or any other file format be attach to vb.net winfirm applications.???

    You can include the pdf file as a resource or attach it to a specific record in a SQL Server table in binary format.

    You can send it via email using the System.Net.Mail namespace, particularly the SmtpClient class. You need to know the SMTP port of your mail server in order to do this.

    "Accept the challenges so that you can feel the exhilaration of victory."

    Eleazar P. Girang, MCP
    PHINUG
Page 1 of 1 (2 items)
Copyright © 2008 Microsoft Philippines Community

Powered by Community Server (Commercial Edition), by Telligent Systems