Results 1 to 8 of 8

Thread: Question about Export to HTML in 3.0

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    7,002

    Default Question about Export to HTML in 3.0

    Can I export a report to HTML, in memory,and dump that string into the body of an html email?

    Current Customer wants all customer reports to be "email enabled" so he can send as email-body, rather than the attach a PDF i do now..
    Michael Mullan.
    Danes Bridge Enterprises.

    ++++++++++++++++++++++++++++
    There is just today. Tomorrow is a concept
    that is mostly theoretical. -- GM Wylie
    ++++++++++++++++++++++++++++

  2. #2
    Join Date
    May 2013
    Location
    Hengelo, the Netherlands
    Posts
    12
    Blog Entries
    2

    Default Re: Question about Export to HTML in 3.0

    Use the 'ComReportHTMLPreview' function to get the HTML string.
    Met vriendelijke groet,
    with Kind Regards,

    Bénar Bloemendal
    Application Developer

  3. #3
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    7,002

    Default Re: Question about Export to HTML in 3.0

    Great Thanks.

    MM
    Michael Mullan.
    Danes Bridge Enterprises.

    ++++++++++++++++++++++++++++
    There is just today. Tomorrow is a concept
    that is mostly theoretical. -- GM Wylie
    ++++++++++++++++++++++++++++

  4. #4
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    9,795

    Default Re: Question about Export to HTML in 3.0

    Michael,

    Note that the function returns an array of strings where each string cannot be bigger than the argument size.

    Also, the output is not meant for direct embedding in an e-mail message as it is designed for the previewer control. Each report page is formatted as a <div> with a page ID. To get it right for an e-mail I expect you would need to do some processing, making collapsable nodes for example.

    A better solution for an e-mail is PDF and enclose the PDF as file.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  5. #5
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    7,002

    Default Re: Question about Export to HTML in 3.0

    At attachment is NOT a better solution, if hte email is a reminder, or an appointment request, or a confirmation that your _ inset list of product here _ is ready for pickup/delivery, please call to schedule

    Attachments are (barely) acceptable for sending Invoices, or for receipts, but for most other communications to customers, well not so much.

    my 2c

    As long as the HTML extract can EASILY be parsed back into a properly constructed <html> document, we'll be ok.

    MM.
    Michael Mullan.
    Danes Bridge Enterprises.

    ++++++++++++++++++++++++++++
    There is just today. Tomorrow is a concept
    that is mostly theoretical. -- GM Wylie
    ++++++++++++++++++++++++++++

  6. #6
    Join Date
    May 2010
    Location
    NZ
    Posts
    1,660

    Default Re: Question about Export to HTML in 3.0

    As long as the HTML
    Michael, you may not be aware that quite a number of email providing companies block emails that have HTML inserted in them.

    Here in NZ the company that hosts a great proportion of NZ's email rejects HTML which makes email advertising UGLY. Gmail is a bit funny about it too and the ones I receive I have to "Allow" images.

    I have a very good article that explains WHAT is considered acceptable (and what will be read). Maybe I ought to dig it out.

    Just another thought, Outlook includes appointments as an attachment which is automatically added to the receipts calendar.
    Best Wishes

    Kelly


  7. #7
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    9,795

    Default Re: Question about Export to HTML in 3.0

    Michael,

    The HTML string is designed to be placed within a HTML <body> element. So play with the results.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  8. #8
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    9,795

    Default Re: Question about Export to HTML in 3.0

    Benar, Michael,

    The methods in the cVRWReport wrapper class nevers start with the COM prefix. These COMxxx methods are hidden for CodeSense. While you can use the direct OCX methods it is preferred to use the "normal" methods as they check the report ID, redirect errors etc.

    The ComReportHTMLPreview method is still to be wrapped in the cVRWReport class. I will make a note of that.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

Posting Permissions

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