Alpha Video Training
Results 1 to 8 of 8

Thread: Embed a PDF into a letter

  1. #1
    Member
    Real Name
    Gene FitzPatrick
    Join Date
    Mar 2011
    Posts
    264

    Default Embed a PDF into a letter

    I have the need to send a report via email. That's no big deal except that in this case, attachments are not allowed. Is it possible to output a report to a letter? Or perhaps embed a PDF into a letter?

    Thanks for your help.

    Gene

  2. #2
    "Certified" Alphaholic Ted Giles's Avatar
    Real Name
    Ted Giles
    Join Date
    Aug 2000
    Location
    In the Wolds, Louth, Lincolnshire, UK
    Posts
    4,366

    Default Re: Embed a PDF into a letter

    Sorry Gene, can you confirm which you need please.
    Email with pdf content
    Email with letter content
    Email with content derived from data available on the PC
    Ted Giles
    Example Consulting - UK
    .

    http://ec12.example-software.com//
    See our site for Alpha Support, Conversion and Upgrade.

  3. #3
    Member
    Real Name
    Gene FitzPatrick
    Join Date
    Mar 2011
    Posts
    264

    Default Re: Embed a PDF into a letter

    Hi Ted.

    Some people get nervous about opening attachments so what I would like is to be able to create a letter and output the results into the body of an email. As far as I know at this time, attaching a PDF is the only way to email a letter. Is that right? If so, then consider this a suggestion for enhancement to address such concerns.

    Regards,

    Gene

  4. #4
    "Certified" Alphaholic Ted Giles's Avatar
    Real Name
    Ted Giles
    Join Date
    Aug 2000
    Location
    In the Wolds, Louth, Lincolnshire, UK
    Posts
    4,366

    Default Re: Embed a PDF into a letter

    Understood.
    Late here, will look tomorrow.
    Ted Giles
    Example Consulting - UK
    .

    http://ec12.example-software.com//
    See our site for Alpha Support, Conversion and Upgrade.

  5. #5
    "Certified" Alphaholic MoGrace's Avatar
    Real Name
    Robin
    Join Date
    Mar 2006
    Location
    Los Angeles
    Posts
    3,699

    Default Re: Embed a PDF into a letter

    If you save your letter as a pdf file you should be able to export it to html and then via xbasic put that in the body of the email.

    Not saying I know how to do that, but it might get you started... searched the wiki and found PDF Printing Utilities
    Robin

    Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

  6. #6
    "Certified" Alphaholic Ted Giles's Avatar
    Real Name
    Ted Giles
    Join Date
    Aug 2000
    Location
    In the Wolds, Louth, Lincolnshire, UK
    Posts
    4,366

    Default Re: Embed a PDF into a letter

    Gene, when you create an email, you can load the body of the report from a template.
    So, if you save the report as a txt file, then you will be able to use it as the body and not as an attachment.

    The trick will be to capture the user ID and make sure that the correct email content goes to the person you want it to.
    That is relatively simple using logic which identifies the report in txt format when you save it using variables.
    Ted Giles
    Example Consulting - UK
    .

    http://ec12.example-software.com//
    See our site for Alpha Support, Conversion and Upgrade.

  7. #7
    "Certified" Alphaholic Mike Wilson's Avatar
    Real Name
    mike wilson
    Join Date
    Apr 2005
    Location
    Grand Rapids, Michigan
    Posts
    4,200

    Default Re: Embed a PDF into a letter

    Depending on the complexity of the data that is being generated into the report that you can't send, the data can be collected into a text string and put into the message of an email. If the source data is a set with several layers of 1-M relations, it makes the collection extremely difficult, but simple data sets captured into text collections and put into an email message is very doable. I do this all the time.
    Mike W
    __________________________
    "I rebel in at least small things to express to the world that I have not completely surrendered"

  8. #8
    "Certified" Alphaholic Ted Giles's Avatar
    Real Name
    Ted Giles
    Join Date
    Aug 2000
    Location
    In the Wolds, Louth, Lincolnshire, UK
    Posts
    4,366

    Default Re: Embed a PDF into a letter

    Not knowing the complexity prompted me to suggest saving the report as a text file.
    It means a different layout to simplify presentation and using that text as a "template".
    Saving beautifully crafted report as a plain txt file has its problems, and saving as htm sort of works but exports spurious characters which mess up the email content.
    All we need now is Gene to comment.
    Ted Giles
    Example Consulting - UK
    .

    http://ec12.example-software.com//
    See our site for Alpha Support, Conversion and Upgrade.

Similar Threads

  1. How to Embed Browse from a Set?
    By MackPeirson in forum Windows Desktop Applications
    Replies: 15
    Last Post: 01-26-2018, 11:48 AM
  2. Validation - letter by letter
    By eskimoavenue in forum Application Server Version 10 - Web/Browser Applications
    Replies: 6
    Last Post: 03-03-2011, 06:22 PM
  3. Embed IF?
    By Keith Hubert in forum Alpha Five Version 9 - Desktop Applications
    Replies: 7
    Last Post: 10-27-2009, 02:34 PM
  4. Working on designing Letter then error and letter disappears from control panel?
    By Hansolo in forum Alpha Five Version 9 - Desktop Applications
    Replies: 6
    Last Post: 05-22-2009, 10:05 AM
  5. ~22 inch height limit for letter region of letter designer?
    By Hansolo in forum Alpha Five Version 9 - Desktop Applications
    Replies: 4
    Last Post: 05-21-2009, 11:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •