Export to exchange folder in HTML format not working

Hi All
I am trying to export report in HTML format directly to exchange folder and sending it as mail. I am using below code for it but it is not working for html format only. I am able to export other formats (rpt, pdf, word, excel...) using below snippet.
Crazy thing is that it doesn't give any error or exception. It just ignores the code. It will great if someone can sneak in below code and point out what I am doing wrong.
Dim destination As ExportDestination = ExportDestination.ExchangeFolder
Dim options As New HTMLFormatOptions
options.HTMLFileName = "report1.rpt"
options.HTMLBaseFolderName = System.IO.Path.GetTempPath()
ExportToExchangeFolder(format, options)
Private Sub ExportToExchangeFolder(ByVal format As ExportFormat, ByVal options As ExportFormatOptions)
    Dim myExchangeOpts As ExchangeFolderDestinationOptions = ExportOptions.CreateExchangeFolderDestinationOptions()
    Dim myExportOpts As New ExportOptions
    myExchangeOpts.DestinationType = ExchangeDestinationType.ExchangePostDocMessage
    myExchangeOpts.Profile = "Outlook"
    myExchangeOpts.FolderPath = "[email protected]#Drafts"
    myExportOpts.ExportDestinationOptions = myExchangeOpts
    myExportOpts.ExportDestinationType = ExportDestinationType.ExchangeFolder
    myExportOpts.ExportFormatType = ExportFormatType.HTML32
    myExportOpts.ExportFormatOptions = options
    report.Export(myExportOpts)
End Sub

Hi Saurabh,
The logic does not make sense.... Open a report up in CR Designer and export to HTML, notice it creates a few folders and a bunch of files, depending on the options you select.
It's not one file so what you should do is export to disk, use a third party API set to zip up the files and folders and then e-mail the zip file to the server/user.
Actually what you should do is not give the users that option, PDF works for viewing through a browser so use it, easiest way to do this.
And because you are attempting to send HTML through E-mail there are all sorts of security issues sending that format and lots of permissions required. Best to avoid it.
Don

Similar Messages

  • Send report in HTML format not in MHTML

    Hi all,
    I need to send report in email in HTML format not in MHTML format.
    Kindly help me.
    Thanks

    Hello,
    As far as I know, we cannot change the rsreportserver.config file to achieve this effect.
    In SSRS, the HTML rendering extension renders a report in HTML format. The HTML rendering extension is the default rendering extension for reports that are previewed in Report Builder and viewed in a browser, including when run in Report Manager.
    There is an article about Rendering to HTML, you can refer to it.
    http://technet.microsoft.com/en-us/library/dd255269.aspx
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Exporting from PDF to Word 2010 is not working in Acrobat 8

    Exporting from PDF to Word 2010 is not working in Acrobat 8.  I'm getting the following errors/messages.  Any suggestions?
    The instruction at “0x29034c05” referenced memory at “0x0000030”. The memory could not be “written”.
    Click OK to terminate the program 
    Click onCANCEL to debug the program
    Runtime Error!
    Program: C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Acrobat.exe
    R6025
    -pure virtual function call

    Not supported by Acrobat 8. Supported by Acrobat X.
    Be well...

  • Home button in HTML Help Not Working

    My Home button in HTML Help Not Working.
    Also the Home option from the Options menu does not work. I receive the "This program cannot display the webpage" error.
    I have the correct file name (titlepg.htm) in the Advanced Windows Ptoperties "Default" field and the "Home" field. However, I still receive the "This program cannot display the webpage" error.
    How can I correct this situation? Thanks, your help is appreciated!

    Can you post a couple of screen captures please?
    One where you show the Project Explorer with the desired topic in view. Another where you show the dialog where you specify the Home page destination.
    Another thing you may wish to try is to define a totally new window, assign the values there and ensure you point to the window in the Single Source Layout recipe.
    Oh, and one other thing. Are you using RoboHelp HTML or RoboHelp for Word?
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • I tried to update my photo albums in my Iphone 4S. I could not, and the old photos were removed. I tried again to copy the albums in the Iphone from a PC Windows XP folder and it does not work.

    I tried to update my photo albums in my Iphone 4S. I could not, and the old photos were removed. I tried again to copy the albums in the Iphone from a PC Windows XP folder and it does not work.

    You can't activate any GSM iPhone without a valid sim card installed in the phone.
    So, yes, you need to get a sim card.

  • Hi all, Since I updated to Mavericks I am having trouble with Safari showing all the buttons/clickable options, but they are gray and will not work. Specifically, the Trash Can/Delete and the "Move to" folder button simply do not work. Any ideas?

    Hi all, Since I updated to Mavericks I am having trouble with Safari showing all the buttons/clickable options, but they are gray and will not work. Specifically, the Trash Can/Delete and the "Move to" folder button simply do not work. Any ideas?

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • Exporting Crystal Report to HTML is not working in Windows 7

    Hi Sir,
    I am trying to export Crystal Report to HTML format using VB.NET code. Functionality is working fine at Windows XP Environment (Save to Disk, Open an Application and Email Attachment). But the same functionality is not working at Windows 7 Environment (both 32-Bit as well as 64-Bit).
    Below is the code to Exporting Crystal Report to HTML in VB.NET.
    Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions
    Dim CrFormatTypeOptions          As New HTMLFormatOptions
    Dim vFormat As Integer
    Dim CrExportOptions As New ExportOptions
    Dim vRdReport As New ReportDocument
    Dim sfd As SaveFileDialog
    Dim vFileName As String = Nothing
    vRdReport = vRptSource
    sfd = New SaveFileDialog
    If Not (vRptPath = "") Then
        sfd.InitialDirectory = vRptPath
    End If
    sfd.Filter = "Webpage, Complete(.htm;.htm)|.htm|Web Archive, Single file(.mht)|.mht|Webpage, HTML only(.htm;.html)|.html"
    If sfd.ShowDialog = DialogResult.OK Then
        ' Set the disk file options.
         CrDiskFileDestinationOptions.DiskFileName = sfd.FileName.ToString()
    Else
         Return
    End If
    CrExportOptions = vRdReport.ExportOptions
    CrFormatTypeOptions.HTMLFileName = vFileName
    CrFormatTypeOptions.HTMLEnableSeparatedPages = True
    CrFormatTypeOptions.HTMLEnableSeparatedPages = True
    CrFormatTypeOptions.HTMLHasPageNavigator = True
    CrFormatTypeOptions.UsePageRange = True
    With CrExportOptions
                        .ExportDestinationType = ExportDestinationType.DiskFile
                        .ExportFormatType = ExportFormatType.HTML32
                        .DestinationOptions = CrDiskFileDestinationOptions.DiskFileName
                        .FormatOptions = CrFormatTypeOptions
    End With
    vRdReport.Export()
    Catch ex As Exception
            MsgBox(ex.ToString)
    End Try
    Code working fine at Windows XP, But it is not woking in Windows 7 environment.
    Please can anyone share your valuable thoughts or ideas reg. this.
    Thanks in Advance
    Deivanayaga Perumal D.

    user13509659 wrote:
    Run this code to reproduce the issue.Which issue?
    It looks like inheritance is broken in the component hierarchy for JFrame in Windows 7 JDK 1.6.0_23-b05. The only thing remotely related to inheritance in your code snippet is the WindowListener, which does little. See camickr's advice about built-in exit management.
    EDIT - using the post title as a clue, I realize you may be talking about the component hierarchy, and whether the contentPane's background is visible through the upper layers. Instead of guessing, I'd prefer you describe your "issue" accurately (observed vs expected behavior).
    Edited by: jduprez on Feb 10, 2011 1:01 PM

  • Crystal report 8.5 export to csv and rtf format not working with office 2013

    Hi Experts,
    Crystal report version 8.5 hangs and eventually crash when i export my report to csv or rtf format on windows 7 with office 2013 installed, code is written in VB 6 although the same scenario is working with office 2010 installed.
    i debugged the code and found the application hangs at function Report.Export(False).
    below is the code snippet
           .PDFExportAllPages = True 'ePDFExportAllPages
           .PDFFirstPageNumber = ePDFFirstPageNumber
           .PDFLastPageNumber = ePDFLastPageNumber
           .RTFExportAllPages = True 'eRTFExportAllPages
           .RTFFirstPageNumber = eRTFFirstPageNumber
           .RTFLastPageNumber = eRTFLastPageNumber
           .UseReportDateFormat = eUseReportDateFormat
           .UseReportNumberFormat = eUseReportNumberFormat
           .UseReportNumberFormat = eUseReportNumberFormat
           .XMLAllowMultipleFiles = eXMLAllowMultipleFiles
           .XMLFileName = eXMLFileName
           Report.Export (False) ----Application hangs here and eventually crash
    Looking forward for your help, as it is very urgent
    Regards
    Mohit

    Hi Mohit
    CR 8.5, being about 15 years old, does not support Windows 7. I am surprised this works for you with MS Office 2010 and to be honest, I'd consider my self lucky there. The fact that is does not work with office 2013... well, like I said, lucky with Office 2010 and your luck ran out with Office 2013.
    Your option; rewrite the app in VS 2010 / 2012 / 2013 and use the CR Assemblies for VS .NET from SAP Crystal Reports, Developer Version for Visual Studio .NET. The CR Java SDK would be another option.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • I tried to inport a bookmark html which was exported from Google Chrome. but it did not work

    I exported the file from Google Chrome and tried to import it into Firefox as advised using FireFox help
    It Did not work
    Help!
    vcoli26

    Try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Links in dynnamic html text not working?...

    Hi all
    I have a dynamic text field, set to format html.
    The link that loads in the dynamic text field is:
    <a
    href="portfolio_template.php?sec=housing%2F&sub=townhouses%2F&pro=rheingold+gardens%2F&st =2&id=5">Rheingold
    Gardens receives 2006 Building Brooklyn Award</a>
    It does not work.
    If I make a very simple link, like:
    <a href="
    http://example.com">link</a>
    It works.
    I have seen in the Flash (MX2004) doc that
    "<a href> must be a string, up to 128 characters."
    My href string is not longer than 128 chars...
    What is wrong?...
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

    Have tried putting
    http:// in front of your link?

  • Html snippet not working; created from Taco html edit Component Library

    Ok, I've searched for days on the discussion board for the answer to this one..... hopefully someone can give me a couple of pointers....
    I have a component created from Taco html edit Component Library that I cannot get to work as an inserted snippet into iWeb 3.0.2.
    Why can't I get this to work? I've seen first hand that they work on someone else's website that she constructs in html directly, not using iWeb. Any help greatly appreciated.
    Taco created three files. They are:
    TSWAccordion.css
    TSWDomUtils.js
    TSWAccordion.js
    Here is the code:
    <html>
    <head>
    <title></title>
    <script type="text/javascript" src="Scripts/TSWAccordion.js"></script>
    <script type="text/javascript" src="Scripts/TSWDomUtils.js"></script>
    <link rel="stylesheet" type="text/css" href="Scripts/TSWAccordion.css" />
    <!-- BEGIN COMPONENT Accordion - Taco HTML Edit -->
    <style type="text/css">
    #myAccordion.tswAccordion
    width: 200px;
    height: 400px;
    background-color: #f0f0f0;
    #myAccordion .tswAccordionActiveSection, #myAccordion .tswAccordionInactiveSection
    background-color: #f0f0f0;
    width: 100%;
    height: 400px;
    #myAccordion .tswAccordionHeader
    text-align: center;
    padding: 2px;
    font-family: Verdana;
    font-size: 16.0px;
    #myAccordion .tswAccordionActiveSection .tswAccordionHeader
    background-color: #7086aa;
    color: #ffffff;
    border: 1px solid #cccccc;
    #myAccordion .tswAccordionInactiveSection .tswAccordionHeader
    background-color: #f0f0f0;
    color: #000000;
    border: 1px solid #cccccc;
    #myAccordion .tswAccordionHeader
    #myAccordion .tswAccordionBody
    padding: 5px;
    </style>
    <!-- END COMPONENT Accordion - Taco HTML Edit -->
    </head>
    <body>
    <!-- BEGIN COMPONENT Accordion - Taco HTML Edit -->
    Title 1
    <!--Content for section 1-->
    Title 2
    <!--Content for section 2-->
    Title 3
    <!--Content for section 3-->
    <script type="text/javascript">
    var accordion = tswAccordionGetForId('myAccordion');
    </script>
    <!-- END COMPONENT Accordion - Taco HTML Edit -->
    </body>
    </html>

    You need to upload these three files in a folder to the root folder on your server:
    TSWAccordion.css
    TSWDomUtils.js
    TSWAccordion.js
    The folder cannot be named "Scripts" as shown in your code as you already have one of that name.
    Say it is named "Accordion". You then need to give the absolute URL to these files rather than the relative one shown in the code....
    http://www.yourdomainname.com/Accordion/TSWAccordion.css
    http://www.yourdomainname.com/Accordion/TSWDomUtils.js
    http://www.yourdomainname.com/Accordion/TSWAccordion.js

  • Premiere Markers export and import: Roundtrip via FCP XML not working

    The objective of my project is to create a sports app that records markers and saves it in different formats of XML / CSV that I can then import in different NLE packages.
    I have already succeeded with Vegas Pro but also want to support NLEs for MAC-OS.
    In order to approach this analytically I have exported a very simple project with 1 sequence including 1 clip and 3 markers (with length zero and length > 0) and exported it
    in FCP XML from Adobe Premiere CC and do a round-trip import it via FCP import into Adobe Premiere CC.
    This round-trip does not work. Any insight why or any support what other mechanism will work?
    Thanks
    Thomas

    let's go back to the purpose:
    I have written a mobile app on which people can during a sports match capture the time of the important moments by pressing buttons.
    I then convert the time information into an XML or CSV file that can be read by the different NLE. Given that Sony Vegas allows to import
    markers independently from a sequence. Now I look at the same things for Premiere. This allows to edit the highlights very quickly vs watching
    the entire match coverage again.
    I try to replicate that on Premiere through the FCP XML, but now that the roundtrip works, the issue is that FCP XML in its structure wants a sequence.
    I could imagine to provide a dummy sequence that can be overlayed by the real content just to preserve the markers. Any ideas?
    Regards,
    TK

  • HTML file not working ..!

    Okay so i`ve created a website on flash mx , converted it into html .. uploaded on domain on member.webs.com.. here is the link of file nawazbaig.webs.com/website2.html .. it shows up the blank page . ? it is running perfectly fine on my computer.. but on domain it is not working.. here is the code of html
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>website2</title>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="website2" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="website2.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <PARAM NAME="SCALE" VALUE="exactfit">
    <embed src="website2.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="website2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"SCALE="exactfit" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    </body>
    </html>
    "  I would really appreciate your comment on this problem..!

    relaxatraja may be right, it could just be your path which is wrong.....
    But you are already using a "relative" path... so that can stay the same... it just might be the wrong one.
    From an old article on pathing:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Best wishes,
    Adninjastrator

  • Roundtrip formatting not working

    My issue is that when I open an XML file in FrameMaker, the formatting is not using my application that I set up. I'm not sure where this is controlled.
    This is what I did. I made a copy of the Structure\xml\DITA folder to create Structure\xml\MyDITA. I converted my documents to DITA and updated the application template and EDD (formatting only) in MyDITA folder. I did not touch the DTD.
    When I save my file as XML I get no errors, but when I open the XML in FM, the formatting is not using my template in MyDITA application.
    When I open the XML file in FM and selected StructureTools > Set Structured Application and it is set to DITA_1.2_topic. When I set it to MyDITA it has no effect on the formatting.
    What is controlling which application to use when the XML file is opened? I have a custom XML application that works just fine. The Doctype in my XML file is:
    <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"
    I hope this is an easy question to answer. Thanks!
    Karene

    HI Karene...
    Using the Set Structured Application command is not "permanent" when used on an XML file. You can use this to check the current app assigned to a file, but don't bother setting it there.
    You need to assign the proper app on file open. This is done by making sure that you have a valid structure application definition for your app (in the Structure Application Definition file) AND making sure that app definition is set up properly in the DITA Options dialog (the application mapping section). It sounds like the DITA 1.2 app is still selected in Options.
    In DITA Options, select the "DITA v1.1" option, then click the "..." button to the right of the associated drop list. In the Mapping Manager dialog, choose New Mapping from the Mapping Tag list, give it some name ("MyDITA 1.1 Mapping") and choose APP_MAPPING_DITA_1.1 from the Mapping Type list. Now, in the Mapping Manager dialog, enter the doctype for your app .. "topic" (based on your example), then enter the application name "MyDITA", then select the Type "TOPIC" (in this case). Now choose Add/Edit. If your app supports other topic types, you'll need to add them to the mapping list. When you're done choose OK. In DITA Options you can now select your app mapping in the list (or it may already be selected).
    In theory this should "work" .. you may need to exit and restart FM to get it to set properly.
    Yes .. it's not simple or straight forward, and the docs are pretty weak.
    <shameless-plug>
    No pressure .. but have you looked into (or heard of) DITA-FMx? It simplifies this whole process considerably (although app development is still a bit of a learnign curve), and makes book publishing from DITA much easier.
         http://leximation.com/dita-fmx/
    </shameless-plug>
    Cheers,
    ...scott
    Scott Prentice
    Leximation, Inc.
    www.leximation.com

  • -wap-input-format not working properly in Nokia 58...

    I didn't know where to report this bug, so I'll try here.
    When you create web pages for mobile use you can set various input formats in form elements.
    This helps the user by setting up and validating input even before it reaches the server.
    One of these is the "-wap-input-format".
    I recently ran into a problem with at page that I couln't access from my Nokia 5800 and I decided to figure out why.
    The page has an input field like this:
    <input name="somenumber" type="text" style='-wap-input-format: "10N"' />
    (Which basically tells the phone that in this field you can only enter 10 digits.)
    However, even when I enter exactly 10 digits, the field turns red, and the phone refuses to continue until I "correct my error". The only input that the phone will allow is an empty field.
    However... if the field is made like this:
    <input name="somenumber" type="text" style='-wap-input-format: "NNNNNNNNNN"'/>
    everything works just as it should.
    But... the first type is also correct according to standards and should work too.
    My phone has the V21.0.025 firmware. (and no new updates available yet for this product code.)
    Does anyone know where this bug can be reported, or if its fixed in newer firmware?

    The solution is NOT changing the webpage. The page already follows the correct standard! 
    It its the browser in the XM5800 that has a problem. My example clearly shows this. The phone acts inconsistent depending on the syntax in the wap inputfield. Both of the above syntaxes are supposed to give the same result. But one works, and the other, which is probably the one most often used, does not work at all.
    Right now I use the Opera browser instead to access that page.(Because Opera does not have this bug.)
    My post was simply an attempt to notify Nokia of this problem...  Because I can't find any place to report bugs.
    And at the same time ask users who have the newer version of the firmware, if they know if this problem still exists.
    Message Edited by Timod on 08-Nov-2009 09:04 PM

Maybe you are looking for