Dnd - an email attachment onto a JTable
Hello all - I really hope someone can help with the following : I have a Java swing application, which contains a JTable. The table holds data in rows which the users can persist (save as XML).
One of our users asked to know if it is possible for him when he gets an email with a saved attachment to drag and attachment into the application rather than having to save it to file and then load it.
I am new to Dnd. For the past 2-3 days I have been looking for examples for such functionality (searched for "dnd", "dnd email attachment", "dnd and outlook" and more and more. I used the examples to try and drag an attachment from my inbox onto the application and it seems the data flavor is text\rtf. Tried to read the attachment byte by byte , however had no success in successfully reading the attachment.
I have come across reported bugs in the past on the site regarding dnd and outlook, but was wondering if anyone can possibly explain or point me in the direction of where I can read how to do this and\or find an example.
If this has already been solved in the past and posted here, apologies in advance! Thanks
You can save an attachment into an app which handles the attachment. Photos to the Photo App. Documents to Pages or Goodreader, etc.
Similar Messages
-
How do I download a song file from an email attachment to my iPad?
I have a song file in my email. I can hear it when I touch on it, but I want a way save it to my iPad music. I want to put it into my music so it's there on my iPad.
Okay. This iPad is synced with my husband's iTunes. He's in California with his Mac, I'm here in New York. How do I save music from an email attachment onto the iPad.
-
TS3899 How can I place an attachment onto outgoing emails on the iPad ?
How can I place an attachment onto outgoing emails on the iPad ?
If it's a photo or video, you type out your mail then hold your finger down in the body of the mail to get the pop up to attach a photo.
If it's another kind of file you have to open it in the app it 'lives' in....for example your word processing app for a document, then look for the little box with the arrow, tap that and you should have the option to send that file to be mailed. -
How to convert sap script to pdf and send it as email attachment
hi,
my requirement is to convert a standard sales order form to pdf and send it as email attachment. get me some sample code for the same
thanks in advanceHi
See this sample code and after that use the fun module to send the mail
SO_NEW_DOCUMENT_ATT_SEND_API1
REPORT zzz_jaytest .
Types Declaration
TYPES : BEGIN OF ty_pa0001,
pernr TYPE pa0001-pernr,
bukrs TYPE pa0001-bukrs,
werks TYPE pa0001-werks,
END OF ty_pa0001.
Internal Table Declaration
DATA : i_pa0001 TYPE STANDARD TABLE OF ty_pa0001, "For pa0001 Details
i_otf TYPE STANDARD TABLE OF itcoo, "For OTF data
i_content_txt TYPE soli_tab, "Content
i_content_bin TYPE solix_tab, "Content
i_objhead TYPE soli_tab,
Work Area Declaration
w_pa0001 TYPE ty_pa0001, "For pa0001 Details
w_res TYPE itcpp, "SAPscript output
"parameters
w_otf TYPE itcoo, "For OTF
w_pdf TYPE solisti1, "For PDF
w_transfer_bin TYPE sx_boolean, "Content
w_options TYPE itcpo, "SAPscript output
"interface
Variable Declaration
v_len_in TYPE so_obj_len,
v_size TYPE i.
Constants Declaration
CONSTANTS : c_x TYPE c VALUE 'X', "X
c_locl(4) TYPE c VALUE 'LOCL', "Local Printer
c_otf TYPE sx_format VALUE 'OTF', "OTF
c_pdf TYPE sx_format VALUE 'PDF', "PDF
c_printer TYPE sx_devtype VALUE 'PRINTER', "PRINTER
c_bin TYPE char10 VALUE 'BIN', "BIN
c_name TYPE string VALUE 'C:\ZZZ_JAYTEST.PDF',"Downloading
"File Name
c_form(11) TYPE c VALUE 'ZZZ_JAYTEST'. "Form Name
START-OF-SELECTION.
Selecting the records from pa0001
SELECT pernr bukrs werks FROM pa0001
INTO TABLE i_pa0001 UP TO 10 ROWS.
Setting the options
w_options-tdcopies = 1 ."Number of copies
w_options-tdnoprev = c_x."No print preview
w_options-tdgetotf = c_x."Return of OTF table
w_options-tddest = c_locl."Spool: Output device
Opening the form
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = c_form
device = c_printer
language = sy-langu
OPTIONS = w_options
IMPORTING
RESULT = w_res.
LOOP AT i_pa0001 INTO w_pa0001.
Writting into the form
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'MAIN'
window = 'MAIN'.
ENDLOOP.
Closing the form
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = w_res
TABLES
otfdata = i_otf
EXCEPTIONS
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
codepage = 5
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Converting OTF data to single line
LOOP AT i_otf INTO w_otf.
CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
INTO w_pdf.
APPEND w_pdf TO i_content_txt.
ENDLOOP.
Converting to PDF Format
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = c_otf
format_dst = c_pdf
devtype = c_printer
CHANGING
transfer_bin = w_transfer_bin
content_txt = i_content_txt
content_bin = i_content_bin
objhead = i_objhead
len = v_len_in
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.
v_size = v_len_in.
Downloading the PDF File
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = v_size
filename = c_name
filetype = c_bin
TABLES
data_tab = i_content_bin.
If you r using this function module check it once....
call function 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
others = 4.
Fehlerhandling
if sy-subrc <> 0.
endif.
or u can use the standard program RSTXPDFT4 to download the script into PDF format onto a particular location
follow this link for sample program.
http://searchsap.techtarget.com/tip/0,289483,sid21_gci1121833,00.html
check...
How to send smart form via email
/people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp
Regards
Anji -
I can't open a jpg file directly from an Outlook email attachment into Photoshop CC.
When I try to open a jpg file directly from an Outlook email attachment into Photoshop CC I get this error message " Photyoshop CC.exe - Entry Point not found" with this string:
I don't think I have ever been able to open an image directly from Outlook into Photoshop. What you can do, is drag from outlook to desktop, and then from desktop into Photoshop. Or, if seeing the windows at the same time is a problem, drag onto desktop, then minimise everything, and drag onto the Photoshop icon (if you have a Photoshop shortcut on your desktop).
-
No option when opening a pdf from an email attachment
I recently had trouble opening a pdf file that was attached to an email, and while mucking around with it, I tried opening it up in Word (which didn't help that particular problem anyway). Unfortunately, now, all my emailed pdf files open up automatically in Word rather than Acrobat Reader.
So now my question is, how do I get them to automatically open in Acrobat reader directly from the emailed attachment instead of Word? At the moment I have to save them all to my c: drive, then right click on them and select Open With Acrobat Reader 10. What I want is for them to automatically open in Acrobat Reader 10 rather than having to save them all to my c: drive first because I have many, many of them to print out. Can anyone help me with this please?Hi,
Can you try saving any PDF onto your local machine (say C:\) and then right click on the same.
1. Click on the "Open With > Chose Program".
2. Select Adobe Reader 10 and make sure that you check the checkbox "Always use the selected program to open this kind of file"
3. Click on OK and you should be good to go.
Hope this does the trick
Ankit -
Receive email and read email attachment via BPEL
Hi All,
Does anyone know how to or has a module on receiving email and read email attachment via BPEL.
Im now reading and exploring UMS adapter as this activity can handle both reading email and email attachment.
Your response/s will be very much appreciated. Thanks.943363 wrote:
Hello,
I have an Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bits on an AIX 5.3 mainframe without the enterprise web interface.
I would like to do that process :
a daily email is sent to the oracle instance with a CSV in attachment.
I would like that attachment in a directory configured onto the instance.
I have a PL/SQL procedure triggered by a job that will insert the content of the CSV in a table.
Is that process possible with what I have ?
Thanks in advance,
Best Regards,
Grégory B.Databases don't receive email. Just sftp the file and schedule a job to process it. -
I have files that have been on my computer for over a year and I have used them several times and all of a sudden they wont open. I received an error message saying they are improperly downloaded or came as an email attachement which is not the case. Please advise
They seem to be word files - they will open if I choose "open with" microsoft word, but if I double click they don't open they are appearing as PDF on my screen. I even opened one and then tried to "save as" making sure I chose .doc and they still appear as PDF
I just created a new document response.doc in word and when I saved to my desktop it appears as a PDF file and I absolutely did not create a PDF or save as PDF it was a simple word
doc.
The message says "Adobe reader could not open response.doc because it is either not a supported file type or because the file has been damaged (for example attached in an email and not properly decoded)
The reader version is I believe the most current, I always update when prompted. OS is Windows 8 -
Email attachment name in sender mail adapter to the receiver file adapter
HI ,
Ths is regarding email to file scenario. I am trying to create file (in rceiver file adapter) with the same name as the email attachment that i read from mail sender adapter. I want ro use adapter module for this. I could find from blogs that there is module - GetAttachmentName - available that i can use for this in sender mail adapter.
Can you please let me know what whetehr i neeed to mention any module key and parameters for this.
I assume , i need to do following steps :Please confirm.
1. i can use this module - after payload swap module and before standard mail adapter module in sender mail adapter
2. select ASMA option in advanced tab in sender mail adapter
3. In receiver file adapter select ASMA option in advanced tab in sender mail adapter
4. Also select file name option in ASMA in sender mail adapter
Thanks,
VamsiHi Vamsi,
your scenario is also described here: Re: sender mail adapter - attachment name
If you use the Module getAttachmentName, which is described here,
http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0GetAttachmentName
your scenario should work as you described it.
You just need to make sure that the Attachment Name that you read in the first place, is mapped to the Filename Attribute of the
Fileadapter (http://sap.com/xi/XI/System/File/FileName).
regards,
Daniel -
i bought an iphone 4 from my friend and he do not know his apple ID and we are trying to know the email attached to is apple ID so we can rest it cause he forgot them as well and the reset button in the 2 steps always says that the email is always sent ! ( even if you wrote a worng ID like ( asdasdasd ) it will say sent !! how come and now am trying to know or need a hint on that email so my freind could try to remember it !
to those who will think that this phone is stolen , no its not and i would love to go to apple store if there is 1 in jordan so they can help us ,
i have everything with this iphone the box the catalog its serial number , everything but the ID and the (and apple ID is everything as you know)
so please if anyone have any suggestion to help me , and even apple it self if the can help me to get a support from them cause i tried everything to contact them by mail or any other option since as i said there is no apple store in jordanhe knows his ID , if he did all whats in the link he can get his password back ?
how can i make him call applecare ? is there a way to speak to them from jordan ??
i have been trying to reach any1 in apple so they can communicate and help my friend (us) to make him remember it .
am not asking for the password or trying to get into the phone without using it , and i can take my money back though i need to help my friend as well since now he cant use it as well.
thanks kil -
When I download an attachment, it doesn't open in a new window. It goes to my finder, but I must click on an email attachment at least 3 times in order to find it there. Is there a way to change the preferences to simply open attachment in a new window?
http://www.apple.com/feedback/kaywerty wrote:
A rather long winded way of asking if anybody knows if it's possible to have multi-windows open
It's not possible.
Suggestions here -> Apple Product feedback -
I am trying to store an email attachment (an Excel spreadsheet) somewhere on my iPhone 5 to be able to access it easily in the future. I do not need the ability to work on it, just to access it, although it would be convenient if i could load updated versions over it on a regular basis. The spreadsheet was created in Excel on a laptop with Win 7. I read one posting that said I should save the document to iBooks and then could open it whenever I wanted. The same posting refered to something in the upper right corner of the attachment that enabled me to save it to iBooks. Unfortunately, there is no such option showing when I looked at the file, which I did email to myself. I was able to open the attachment, but can't get beyond this point. My tech ability doesn't go much beyond being able to power up my phone, so I need a really simple solution, if one exists.
First of all, Excel file can't save to iBook. (iBook only can view PDF files). That's why you don't see it in "open in" options. In order for you to save excel, you will need a third party app like Numbers, Office2. There are a few free apps that can use to view. I used Office2 from Byte2, because I can not only store and view later, I can do some edit too. Especially when you want to edit a few numbers and re send them to my office or clients will be very useful for me.
-
I had this problem of not being able to open some files a couple of years ago and eventually was able to fix it but i can't remember how. Any help would be grateful.
The following document should help: Error: Adobe Reader could not open '*.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and was not correctly decoded.)
Please update this thread if your issue is resolved.
Thanks,
Shashi -
Email attachment in PDF problem with Images
Hi All,
Can any one tell me how to solve the problem with Email attachment in PDF. If i remove the logo of the client in the Smartform i am getting the Email attachment fine but when i put back the image in the smartform the PDF is giving error and not opening the attachment.
Regards,
Lakshmikanth.Hi All,
Can any one tell me how to solve the problem with Email attachment in PDF. If i remove the logo of the client in the Smartform i am getting the Email attachment fine but when i put back the image in the smartform the PDF is giving error and not opening the attachment.
Regards,
Lakshmikanth. -
How to convert a workbook into PDF and broadcast as Email attachment
Hello Gurus,
i have installed the ADS (Adobe Document services). I would like to broadcast workbooks as a pdf file to some user.
When i open the workbook and go to Broadcast --> Setup a broadcast setting for this workbook. The distribution type is
Broadcast E-mail; Broadcast E-mail (Bursting); Broadcast Portal; Broadcast Multichannel and Output Format only MS Workbook and Link to current Data. Here i miss the possibility as PDF.
Where can i set up that the workbook should be broadcast as PDF.
Any help appreciated.
Thanks and kind rgerads,
MuratThanks all for your answers,
i also read that with changing the format in Report designer then broadcasting via PDF. Is there no possibility for PDFs for MS Excel Workbooks? How does it work when opening the query in Report designer? What do i have to do there but it is no solution for us because in the workbooks we use GET BEX DATA formulas and just show parts of the analyisis grid. I need a proper solution how to use broadcaster converting workbooks into PDF an send them as email attachment
Thanks,
Murat
Maybe you are looking for
-
Okay, I'm going to try and make as much sense as I possibly can without confusing people. I hope someone can help! So when I downloaded the iOS 7 update one 'major' change I noticed was that my album art in iTunes had automatically changed for me. It
-
Dear Experts, We have a vendor created with payment method G but while making one payment we used payment method T. Now the vendor is chasing us saying he has not received the payment. Does use of payment method other than one maintained in the vendo
-
Problem with printing presets in LR 4
Printing presets do not reflect perameters I set or update to in HP 9100 shortcut preferences working in Windows Vista. I have reloaded the HP application and upgraded from LR 4.1 to 4.2 just in case that was the problem. I do not know if I had the
-
Using JDBC with Visual Studio J++ doesn't work.
G'day all, I am trying to create an applet that extracts data from an Access 2000 database, which is then displayed to the applet. Currently I am using Visual Studio J++ 6.0 as my development platform. I am having trouble trying to connect to my Acce
-
Material Ledger Value Flow Monitor CKMVFM question
Hello, I am researching the Value Flow Monitor report CKMVFM. On my test material, it is showing a balance in FI, and a red indicator on the FI/ML status. I assume this means there is a discrepancy between FI and Material Ledger, but I don't know h