PDF reports sent using MS Mail always named "untitled.txt"

We are using CR for .NET with VS 2005 developing an application that needs to export PDF versions of reports as email attachments.  While it works the problem we have is that the attachment is always named "untitled.txt".  The attachment actually is a PDF - renaming the extension to "pdf" allows Adobe Reader to open and display the report just fine.  Here is the code used to export the report:
        CrystalDecisions.Shared.PdfRtfWordFormatOptions pdfOpts =
           CrystalDecisions.Shared.ExportOptions.CreatePdfRtfWordFormatOptions();
        CrystalDecisions.Shared.MicrosoftMailDestinationOptions mailOpts =
           CrystalDecisions.Shared.ExportOptions.CreateMicrosoftMailDestinationOptions();
        CrystalDecisions.Shared.ExportOptions exportOpts = new CrystalDecisions.Shared.ExportOptions();
        pdfOpts.UsePageRange = false;
        exportOpts.ExportFormatOptions = pdfOpts;
        mailOpts.MailMessage = "See attached Action Plan for " + qar.FormNumber;
        mailOpts.MailSubject = aiRows[0].ActionID + " Action Plan";
        mailOpts.MailToList = emailAddresses;
        exportOpts.ExportDestinationOptions = mailOpts;
        exportOpts.ExportDestinationType =
           CrystalDecisions.Shared.ExportDestinationType.MicrosoftMail;
        exportOpts.ExportFormatType =
           CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;
        report.Export(exportOpts);
What can we do to supply a meaningful name for the attached file, and ensure it bears the correct "pdf" extension?
Thanks,
Mitchell

I have exactly the same problem. Has anyone come up with a solution? In CR8.5 the attachment was automatically created with the report file name and a pdf extension, which while not perfect was a good deal better than the current situation.

Similar Messages

  • How to automatically attached multiple PDF reports to an e-mail and send

    Hello.
    I have a requirement to generate multiple PDF reports using Oracle Reports 6i on the web, then automatically attach these PDF reports to an Outlook e-mail and then bring up the Outlook e-mail dialog box so the user can modify the e-mail (such as adding more attachments, adding a CC, BC, change the message text) before sending the e-mail. I want to be able to initiate all these tasks from Oracle webforms 6i in a three-tier environment.
    I have already read various notes and solutions but none of them address all my requirements. Examples:
    1. Using OLE to interface with Outlook - but OLE does now work on the Web
    2. Using Java stored procedure or UTL_SMTP - but this does not bring-up an e-mail dialog box
    3. Using mailto: in HTML and web.show_document - but this does not allow you to attach a PDF file
    Can you please advise on possible solutions to my requirements. Thank you very much.
    Regards,
    Armando

    Here is a great resource for sending binaries.
    http://otn.oracle.com/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
    You'll want to use utl_http to run each report with a destype=file and then have another procedure running to check to see when all of your reports have finished. After they are finished, you would run the stored procedure to get all of the binaries, attach them in an email and then send it.
    If you want to concate all of the PDF files into one large file, you can do this with a Java stored procedure using iText.
    http://www.lowagie.com/iText/

  • Cannot Extract Embedded Font in PDF Report Generated Using Crystal Reports XI

    The issue is that sometimes the PDF reports generated by Crystal Report XI are not showing the fonts properly. Arial font is used in the Crystal report template(.rpt file) for field label and data elements. When the report is opened in Adobe Reader, it displays the message - "Cannot extract the embedded font 'AAAAAA+ArialBold'. some characters may not display or print correctly." Other PDF Readers like Foxit show blank spaces instead. I tried to change the font to Courier New, Times New Roman etc but still getting the same message.
    The issue is consistent when the application is deployed in Windows server. When deployed in Unix server the issue happens very occasionally. The font files are available and installed in the UNIX box.
    Please tell me why this error message is shown and also tell me how to get it fixed.

    Hi Scot
    Just replied to your email re. conf call.
    In the meantime.
    1st question.  
        Some of our developers are creating the reports under crystal 2008, while some are 2011.
        Could this be a problem, when they are run by the SDK?
        Should we upgrade all our developers to crystal 2011?
    The version of CR a report is created in should not matter at all. I am 100% certain this is not the issue.
    2nd question
        When the report is run, to create the pdf... why would it actually embed the font on the pdf?
        if they weren't embedded.. wouldn't it just pull up the proper font, if the user's pc had that font on their
        pc?
        if it does the common fonts aren't embedded, we would just have to worry about the things like
        barcode 3 of 9
    I can not answer this as that essentially is the way the product is designed. It may look like a limitation, but there are no work-arounds and I would not consider this to be a bug. Perhaps an enhancement, but a pretty faint hope there. And even if, enhancements take very, very low priority and take long, long time before implementation.
    3rd question
        Would the fonts, just need to be installed on the server?   we've seen some indication, that they
        also need to be in a java sub-directory
    The fonts must be on the server as that is where the report engine does it's work, then the report is streamed to the user's browser. E.g.; there is no work done on the browser. Also, the process must have rights to access the fonts.
    One last point. You mention deployment to Linux. Linux is not supported. Please see: SAP Crystal Reports, Developer Version for Microsoft Visual Studio - Supported Platforms
    I suspect this is more an issue with CR not working with the framework for Linux.
    - Ludek

  • Want to send PDF as attachement using Java Mail

    HI,
    I am using Java mail API for sending PDF as attachment. Here is my sample code
    messageBodyPart = new MimeBodyPart();
    messageBodyPart.setDataHandler(new DataHandler("String data for PDF using iText", "text/plain" ));
    I am generating String for PDF file using iTEXT but I am unable to find out mimetype for passing into DataHandler as second paramete.
    Any idea?
    Thanks
    Shailesh

    Don't convert the data to String. It isn't text so
    you'll damage the binary content by doing that. In
    the "demos" directory of your JavaMail download
    you'll find a ByteArrayDataSource class you can use
    instead of a FileDataSource. Yes, this worked for me. I create the pdf in memory as as StringBuffer and I just changed the code from
    messageBodyPart.setDataHandler(new DataHandler(pdf.toString(), "application/pdf"));
    to
    messageBodyPart.setDataHandler(new DataHandler(new ByteArrayDataSource(pdf.toString(), "application/pdf")));
    and it worked.
    Thanks a lot for your help,
    Dennis

  • Viewing reports sent by E-mail

    Can anyone tell me how to view the report file with extension
    .eps sent from Report Builder E-mail option.
    TIA,
    -Ebenezer
    null

    I am disapointed that you can't select what type of format you
    want to email the file in. I mean how convienent is an EPS
    file????
    Spencer Tabbert
    Ebenezer (guest) wrote:
    : Guys, Thanks for yr valuable input.
    : Satish Vare (guest) wrote:
    : : Hi:
    : : You can't view .eps file unless you have oracle mail. Yes,
    you
    : : must have oracle mail then and only then you are able to
    view
    : : .eps files else I would suggest generating html output
    : : and e-mailing. This is the only solution for it.
    : : Thanks.
    : : Satish Vare
    : : [email protected]
    : : Ramesh (guest) wrote:
    : : : I don't think you can view them unless you have some kind
    of
    : : : post script viewer but you can print to a PS printer. But
    if
    : : you
    : : : are using reports 3.0, I would suggest generating html
    output
    : : : and e-mailing.
    : : : Ebenezer (guest) wrote:
    : : : : Can anyone tell me how to view the report file with
    : extension
    : : : : .eps sent from Report Builder E-mail option.
    : : : : TIA,
    : : : : -Ebenezer
    null

  • How to display the Image in PDF report by using iText Report

    Hi
    Im trying to display the image which is very big one.
    This is my code
    Document document=new Document();
    PdfWriter.getInstance(document,new FileOutputStream("imagePDF.pdf"));
    document.open();
    Image image = Image.getInstance ("1.bmp");
    document.add(new Paragraph("Images in PDF"));
    document.add(image);
    document.close();
    But the image "1.bmp" is displayed partially. Its not spanning to the next page.
    Can anyone help me to solve this one?
    Thanks in Advance
    dhilip

    Do you actually want the image to span multiple pages? I am not sure that will be possible without splitting the image; the itext mailing list would be the place to ask.
    You could make the the page size big enough for the image using Document.setPageSize()

  • Error in opening PDF attachment sent using SO_DOCUMENT_SEND_API1

    Hi all,
    I am converting script to PDF using FM 'SX_OBJECT_CONVERT_OTF_PDF'. Using this table i am trying to send it as a attachment to mail id. I am able to send the attachment successfully, but not able to open the attachment.
    It is giving error as 'Adobe Reader could not open file because it is either not supported file type or because the file has been damaged'.
    I tried seaching on SDN, but did not get useful answer.
    Can you please help me in resolving this error?
    Thanks,
    Archana

    Good day Archana,
    This is the same problem we have encountered, this has started after adding a patch.
    After doing so much R & D we could not do it. We have written a mail to SAP and they
    have instructed the basis consultant to follow certain procedure and finally the issue is
    solved.
    I suggest you to consult basis consultants.
    Regards and Best wishes.

  • Is it possible  to create a PDF report without using BI Publisher?

    Hi,
    I need to create a report in pdf using APEX, but I don't have BI publisher and I am not interested in to buy it . Which is it the best way to solve my problem?
    Thanks
    Edited by: user13486053 on Jan 7, 2011 6:48 AM

    Have your DBA install FOP and then find a good xml style sheet editor. Or have them install jasperreports and then use ireports to format them...
    Thank you,
    Tony Miller
    Webster, TX
    On the road of life...There are 'windshields', and there are 'bugs'
    (splat!)
    "Squeegees Wanted"
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Problem Reading pdf files sent thru e-mail

    I saved some software output prints to pdf files (software has option for saving to pdf) and e-mailed to a co-worker.  I can see and print fine from my hard drive but recipient got only dots on the pages.  Should have been numbers and text.  I have Adobe 8.1.2.  Do you have any idea why this happened or what to do?  Thanks.

    Some email servers corrupt PDF files because they use the wrong encoding for them. Try zipping them up before sending them.

  • PDF non-retrieval using Windows Mail

    Directly using Firefox or Internet Explorer to logon access to a website enables download of a PDF.  Double-clicking on the URL logon link within a Windows Mail message opens the browser (whichever set as default).  However, logon only results in a blank window.  I've tried many "can't open PDF" solutions to no avail.  OS is Windows 7 (32-bit) and Reader X version 10.1.1 with Flash Player 11 Plug-in.
    Help please.

    Well, thats odd...here is the text:
    I didn't edit the registry, that's just where I saw the entry.  The way I finally fixed it is this:
    1. Go to Control Panel (classic view)/Internet Options/Programs Tab and select "Set Programs".
    2. Select the last option "Set Program access and computer defaults"
    3. Click the double-arrow drop down and go to "Choose Default Email Program"
    4. UNCLICK "Windows Mail" even if Thunderbird is selected as the default and be sure Thunderbird's access is enabled.
    I had to do this on 3 different computers after a Window update...it infuriated me and I have never been a Microsoft "basher" before but this is just unacceptable!  Good luck!
    Cathy

  • Adobe Reader error with PDF reports created using AS Reports Server 10g

    Hi,
    Recently when trying to run reports in our system (which uses Oracle Application Server Forms & Reports Services 10g - 10.1.2.0.2), sometimes when we try to run a report in PDF format the following happens:
    1. A new window appears as expected
    2. This window hangs/appears to try to load for a couple of minutes
    3. Eventually an Adobe Reader error message appears saying the following:
    *"There is a problem With Adobe Acrobat/Reader. Please exit Adobe Acrobat/Reader and try again".*
    I have noticed that this problem only seems to occur when the client has Adobe Reader 9.3 installed (8.2 works fine).
    Has anyone else encountered this problem? Is there a known workaround or is this a known issue?
    Many thanks,
    Chris

    Does anyone have any ideas on this or has anyone encountered the same problem?
    thanks

  • SBS2003 monitoring/reporting without using internal mail server?

    Client is running SBS2003 and for certain reasons, is not running internal exchange. All Exch services disabled and need to stay that way.
    Question; is it possible to configure the server somehow (registry, etc) to point the email to an external SMTP server instead of the internal mail server? We need to get the performance reports but aren't allowed to enable exchange.
    Thanks!
    Charlie

    As best I can recall, in the SBS 2003 era..the reports are acutally emailed using the SMTP service and not exchange.   No information has ever been provided from the MS Product team on how to make mods ot this.  
    But because of integration of SBS when you indicate the users to send to, it's looking at the FQDN and if its the one supplied during the CEICW wizard, then it's trying to send that to an exchange mailbox.   Have you tried running the wizard and
    supply an outside pop3 address?  (not the hosted exchange)  Does the message arrive?  
    Cris Hanna [SBS - MVP] (since 1997)
    Co-Contributor, Windows Small Business Server 2008 Unleashed
    http://www.amazon.com/Windows-Small-Business-Server-Unleashed/dp/0672329573/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1217269967&sr=8-1
    Owner, CPU Services, Belleville, IL
    A Microsoft Registered Partner
    MVPs do not work for Microsoft
    Please do not submit questions directly to me.
    <Charlie Kaiser> wrote in message
    news:[email protected]...
    No, I'm really not sparring with you. I'm just removing the irrelevant factors from the conversation.
    If you really have to know, their hardware is somewhat underpowered for the utilization it is receiving. The client is on hard times and cannot afford to upgrade the server hardware, nor can they afford a second server. Rebuilding their domain onto W2K3/W2K8
    standard is also too expensive a project for them.
    They have hosted external exchange and have for quite some time. They are happy with it and don't want to change. The server, after we took it over and tuned things for them, works fine. They experience almost no downtime and performance is adequate given
    the current configuration. But adding any additional load to the server results in performance issues, including memory and disk space. Adding an additional 5% load on the server for exchange right now is not an option for us or them. They do not want nor
    need exchange running internally.
    So it returns to the original question; is there any way to simply point the outbound email to a different SMTP server? Somewhere, the monitoring component says "send this information by email; connect to SMTP." If there's a way to modify that easily, we
    will do so. If there is not, then we'll probably just shut off the SBS monitoring and use a 3rd party tool intstead. But pointing SMTP is possibly simpler than making those changes.
    As a small-business consultant, we spend a lot of time trying to help small companies do things as cheaply as possible. For many companies, spending a few grand on a server or project is absolutely out of the question these days. So we do what we can. The
    solution you are pushing can work fine for a larger company that has a healthy IT budget. But not in this case.
    Cris Hanna, Microsoft SBS MVP, Owner-CPU Services, Belleville, IL

  • Send Mail with PDF as attachment using Simple mail Option to multiple addre

    Hi all,
    I have a requirement to send the form as attachment to the multiple addresses maintained.
    I want to know the procedure to retrieve all those addresses.
    I am aware of the complete procedure of getting the OTF and and converting to PDF and the sending using API function module.
    Please help me in getting the addresses.
    Regards,
    Vivek

    Hi,
    I use the following code to get all of the email addresses attached to a vendor...
    * Find the partners email address (this should be a vendor)
      select single adrnr into lv_adrnr
        from lfa1 where lifnr = nast-parnr.
      select smtp_addr flgdefault
             adr6~date_from adr6~consnumber remark into table lt_email
        from adr6
         left outer join adrt
            on  adrt~addrnumber = adr6~addrnumber
            and adrt~persnumber = adr6~persnumber
            and adrt~comm_type  = 'INT'
            and adrt~date_from  = adr6~date_from
            and adrt~consnumber = adr6~consnumber
          where adr6~addrnumber  = lv_adrnr
            and adr6~date_from  <= sy-datum
          order by adr6~date_from adr6~consnumber.
    Darren

  • IOS 6: texts sent to e-mail addresses arrive as .txt attachments

    I located the follwoing Q & A on the Apple site. I have the same issue and cannot read the Verizon iPhone 4s/5 iOS 6 text messages on my Verizon Galaxy S III. Has anyone identified a solution?
    (Q) A friend just updated his iPhone 4 to iOS 6, and now the texts he sends to my e-mail address are sent as a .txt attachment (titled "text_0.txt") instead of in the body of the e-mails.  This is a problem, since I can't open the .txt attachments on my Kindle Keyboard.  Any ideas how he can get the messages back in the body of the e-mails I receive from him?
    (A)  I just received the below from Verizon today:
    FREE VZW MSG-DO NOT REPLY: The issue with the text messages on iOS 6 has been escalated to Apple. I will contact you when I have more information.

    I have this problem too, and have been following that apple thread since the beginning.  Its definitely a Verizon problem because ios6 users from all other carriers have not experienced this issue.  Seems like Verizon doesn't really care and has left me hoping that the 6.1 upgrade thats soon to come will fix it. 

  • Oracle Reports - PDF report

    I have a PDF report designed using oracle report builder 6i. This report has a margin that prints the total of all the quantities to be ordered via a QUOTE. If this report prints beyond one page, then the total will print on all the pages. Users do not want to see the total on all the pages but only on the last page. I really need to keep these total fields on the MARGIN section of the layout. Is there any way, i can still keep these fields on the margin and print them only on the last page of the report? The report builder do not let me set the 'print condition' as the 'last page' because it is in the margin section. Any idea on this issue??

    I would create a trigger for your MARGIN totals so they print only on the last page.
    Have the trigger return TRUE if current page = total pages, else return FALSE.
    This will make sure your margin totals are only visible on the last page.

Maybe you are looking for

  • Delete Blank Page in Form Created in Designer ES 8.2

    A fairly simple, straight-forward 3-page form was created in LiveCycle Designer ES 8.2.  At the end of the form (when saved and opened as a dynamic PDF) there is a rogue page at the end.  I cannot figure out how to delete the blank page. Any assistan

  • What is on a bootable backup disc?

    While I'm pretty sure what a bootable disc is...( I think) It allows one to startup their computer in cases where for whatever reason their computer is not responding. I've read in the discussion pages that I should have a bootable backup for when I

  • G4 running 10.3.9 on a go slow

    Evening all My Mac has recently been running very slowly, especially when browsing the internet. I'm running Firefox 1.5 on OSX.3.9, and things are sometimes painfully slow. I have recently upgraded to iTunes 7.1 - and this seems to be quite a lot fo

  • Option to disable the "slide to call" feature for missed calls from lock screen

    I realized that when the iphone (running iOS5) is locked, the"Slide to Call" allows anyone to make an outgoing call to the missed calls from a locked phone (with passcode). This may allow malicious and unwanted calls to be made from a locked phone by

  • Battery Losing Power Qosmio X305-Q705

    I have a Toshiba Qosmio X305-Q705  and the problem is I am charging my laptop and I'm noticing that when I unplugged the charger  when its 100% in  5min  it dies to 0% very fast and I don't know why therefore I have to keep my battery charger on the