How to add hyperlink to file path of pdf when creating email using the email submit button?
I have a form with an e-mail submit button that opens an outlook email with the .pdf file as an attachmnet, and addressed to the e-mail addresses i put in tthe address field.
What we are trying to abvoid is sending a bunch of attchement to numerous people, clogging up email space/server space.
What we would like is not to have the .pdf attched, but rather in the body of the email have a hyperlink to the path of the document. Can this be done, and if so can anyone give me some guidance.
Thanks in advance
Ron
Then you can use something like this:
app.mailMsg({ bUI: true, cTo: "[email protected]", cSubject: "You can find the file at: " + this.path });
The path that will be inserted is a so-called "device-independent path", though, so they may not be able to use it directly.
It's possible to convert it to a "normal" file path, but that is a more complex scripting task.
Similar Messages
-
How can i call this file path into my bsp-html to display the images?
Hi
I have a file path for an image like c:/test_logo.bmp.
How can i call this file path into my bsp-html to display the images?
moosaTry this...
Can i have sample code in BSP-HTML to display images? -
I seem to be having trouble getting downlaoded pdfs to print off. I can view them and they look ok but then i go to the print setup and all that shows is a black page. If i try to open the saved file from the desktop it say the file is damaged or corrupt . this doesnt always happen. sometimes it's fine, so idont know what is wrong, the file , my printer , adobe reader?? can anyone help?
HI thanks for that Pat, but doesn't seemed to have fixed it . I dont have that option on my print set up.
this is message i get when i try to open the file. Adobe Reader could not open 'calleen-2014-a4-form.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 wasn't correctly decoded).
when i am viewing the document online i dont have any access to adobe reader menus or bar at the top, then i go to print from safari browser and then the page in the print box is black , no image. Any other suggestions . thanks -
How to add sites to a SharePoint server on port 80 without using the host header?
Hello,
I have a SharePoint 2013 server with 5 sites on it. 2 are using port 80 and the 3 are using other ports. I like to add 2 more sites to the server. If I was going to add 2 sites with different ports that are not port 80, what do I need to
do? I noticed the host header file on the server has no sites configure in it.
How would I add 2 sites to the server that has 5 other sites?
Thanks
PaulWhere is the Calendar hosted at the moment? If it's within SharePoint, there is a "Connect to Outlook" button, which will export the calendar as a shared calendar to your Outlook instance. I'm never tried the reverse, so if you're using
a shared calendar, you may need to consider moving it. When they are linked, they'll be a two way synch (updates from one end will push to the other). On top of this, you and your team will be able to set-up differnet alerts.
Additionally, within the product you can create an overlay, calendar, which allows you to merge different calendars. Each source calendar can have a different colour picked for it.
In regards to running PS scripts as an end-user, not much if anything can be done here. All I can think of is adding a codeplex workflow extension, work that into a workflow and then plug a script into that. Your IT guys might not let that fly.
Hope that helps
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
How to add one item into Unit of meas.when create an operand?
I am creating an operand, I want to select KGAL in Unit of meas., but it is not in the lists, How can I add KGAL to the list?Thanks.
Hi tiff512:
The way is:
SAP NetWeaver > General Settings > Check Units of Measurement.
The help documentation says the following in relation to the creation of new units of measure:
"If required, define new units of measurement according to the international system of units (SI) with the menu function Unit of meaurement -> Create.
Here you have to make make specifications for:
Display (including a descriptive Units of measurement text)
Conversion (not applicable to units of measurement without dimensions)
Data exchange (EDI) (optional)
Application parameters"
I hope it is helpful to you.
Regards,
David -
How do I send a file containing links so that they can use the links
I purchased two copies of a file that is a list of links. I wish to send one to a friend but want to be sure the links will work. Can anyone help with this, does Adobe Send do that?
Message was edited by: Marion Steinbrenner THIS QUESTION HAS NOT BEEN ANSWERED.Adobe Send can certainly do that.
Or you can do it manually:
upload the file to Acrobat.com
check the file on the Acrobat.com site and click Send
use Create Anonymous Link and click the Create Link button
copy the created download link and send it by email -
How can I automatically re-size an imported PDF when I re-size the window?
I and using RoboHelp HTML 8 and Acrobat Pro 9. Once I "reduce file size," I can import PDFs with no problem and they look fine when I view them. But if I re-size the browser window, the images of the PDFs stay the same size, getting more or less blank space around them. I really need the images to grow and shrink with the window. Is there any way to accomplish this?
Mary LeeI think the keyword here is "images," and you have answered that. In fact, that's exactly what I expected. My problem is that I actually have what I believe are conflicting needs/wants from higher up the chain here. I have been asked to produce a document that looks exactly like the original paper version but will work like clicking the "one page at a time" tool in Acrobat when you change the size of the window.
As you can see (and no doubt, expect) in my images, importing a PDF results in a page image which has a constant size in a browser. Unfortunately, importing or linking a Word document results in changed appearance, which is unacceptable to others here. If you have any suggestions for resolving my dilemma, I would be delighted. -
How to add an audio file to a link
I am working on a project using IWeb and I am trying to figure out if it is possible and then, if it is how to add an audio file to a link. I would really be glad of your help as I am having problems meeting the requirements of the project if I don't make it work.
Also, is it possible when having added a movie clip from quick time player to have the clip start as soon as the page is "opening", that is without pressing the play button?
I am waiting in great suspense to see if anybody can help me out. If you have the answers to my questions, please send me an email at [email protected] - thank you so much :o)Hi Maiken
Welcome to the discussion forums.
All you need is open iWeb, select text or image, open inspector, go to link, check the "enable as a hyperlink" box, in "link to" there's a teardown menu where you select "a file" and select the file you want to link to.
If you want to have it downloading look at [this|http://alyeska.altervista.org/en/iWeb_Downloads.html]
For the second question:
select the movie file in iWeb go to inspector, then to the last icon (showing the quicktime logo) and check the box that say "Autoplay".
Regards,
Cédric -
How can I add an audio file to each slide when I export to HTML Keynote 6.2
How can I add an audio file to each slide when I export to HTML Keynote 6.2
I am trying to create an audio slide show instead of a movieDrag and drop one music files onto each slide then export. (File > Export > HTML)
-
How to add a Java file from ejbModule to EJBCandidates ?
Hi,
In my java client proxy project, I have got the EJBCandidates generated. But I need to add one more java source file from ejbModule to EJBCandidates.
If I right click on the java file I need to add, am not getting that option for adding.
<b>Please help me how to add java source file from ejbModule to the EJBCandidates.</b>
Thank you.Great... :-)
Thank you very very much xHacker :-)
That what just what I needed. -
How to add existing jsp file to a project?
I am trying out 10g developer preview. Looks like a lot of bugs are there in the tool. I would like to know how to add existing jsp file into a project. I tried the Import functionality, but it shows the option to create a project and include only Java files. Is there a way to do this? Thank you
Just copy the files in the directory where the rest of your source file is.
-
How to add new row and update existing rows at a time form the upload file
hi
How to add new row and update existing rows at a time form the upload file
example:ztable(existing table)
bcent smh nsmh valid date
0001112465 7.4 26.06.2007
0001112466 7.5 26.06.2007
000111801 7.6 26.06.2007
1982 7.8 26.06.2007
Flat file structure
bcent nsmh valid date
0001112465 7.8 26.06.2007 ( update into above table in nsmh)
0001112466 7.9 26.06.2007 ( update into above table in nsmh)
000111801 7.6 26.06.2007 ( update into above table in nsmh
1985 11 26.06.2007 new row it should insert in table
thanks,
Sivagopal RHi,
First upload the file into an internal table. If you are using a file that is on application server. Use open dataset and close dataset.
Then :
Loop at it.
*insert or modify as per your requirement.
Endloop.
Regards,
Srilatha. -
How to add an image file to Oracle db?
Need help urgently....Anybody knows how to add an image file (example: jpg)into one of the fields in Oracle database??
This will do the job..
package forum;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
import oracle.jdbc.driver.*;
//import oracle.sql.*;
Wanneer een request.getInputStream wordt geconferteerd naar een "String" (zie later) dan ziet de output in tekstformaat er als volgt uit:
-----------------------------7d280152604f4 Content-Disposition: form-data; name="oploadfile"; filename="C:\WINNT\Profiles\mvo\Desktop\boodschap.txt" Content-Type: text/plain Deze boodschap dient te worden ge-insert in de database. -----------------------------7d280152604f4 Content-Disposition: form-data; name="StadID" 1234 -----------------------------7d280152604f4 Content-Disposition: form-data; name="SuccessPage" /forum/error.jsp -----------------------------7d280152604f4--
of opgesplitst
contentType........... multipart/form-data; boundary=---------------------------7d235ade00f0
filename.............. "C:\Documents and Settings\Administrator\Desktop\boodschap.txt"
MIME type............. text/plain
Wat in database moet.. Dit is de eigenlijke boodschap die moet worden ge-insert in de database.
Eind boundary......... -----------------------------7d235ade00f0 Content-Disposition: form-data; name="file1"; filename="" Content-Type: application/octet-stream -----------------------------7d235ade00f0--
We gaan achtereenvolgens:
1. Kijken of het van het "multipart/form-data" type is (uploaden) en strippen van eerste boundery.
1.a Geen "multipart/form-data" ? dan... error message
1.b Groter dan MAX_SIZE ?..dan .. error message
2. Filenaam van de te uploaden file uitlezen
3. Mimetype bepalen en bepalen in welke positie van de string het Mimetype ophoudt, cq waar te uploaden file begint
4. Bepalen waar eind boundery begint
5. De eigenlijke file uitlezen
6. Terug converteren naar bytes
public class WriteBlob extends HttpServlet {
public static final int MAX_SIZE = ParameterSettings.imageUpload;
String successMessage = "";
public void init(ServletConfig config) throws ServletException {
super.init(config);
* Process the HTTP Get request
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
DataInputStream in = null;
FileOutputStream fileOut= null;
PrintWriter out = response.getWriter();
int kb_size = 0;
boolean pass2 = true;
String message = "";
String responseRedirect = "/forum/uploaden.jsp?message="+" Uploaden geslaagd";
try
//get content type of client request
String contentType = request.getContentType();
// Start stap 1...content type is multipart/form-data
if(contentType != null && contentType.indexOf("multipart/form-data") != -1)
//open input stream
in = new DataInputStream(request.getInputStream());
//get length of content data
int formDataLength = request.getContentLength(); // totale lengte van de inputstream
//initieer een byte array om content data op te slaan
byte dataBytes[] = new byte[formDataLength];
//read file into byte array
int bytesRead = 0;
int totalBytesRead = 0;
int sizeCheck = 0;
while (totalBytesRead < formDataLength)
//kijken of de file niet te groot is
sizeCheck = totalBytesRead + in.available();
if (sizeCheck > MAX_SIZE)
pass2 = false;
message = "Sorry. U kunt slechts bestanden uploaden tot een grootte van 500KB";
responseRedirect = "/forum/uploaden.jsp?message="+message;
bytesRead = in.read(dataBytes, totalBytesRead,formDataLength);
totalBytesRead += bytesRead;
if (pass2==true)
kb_size = (int)(formDataLength/1024);
//create string from byte array for easy manipulation
String file = new String(dataBytes);
/*get boundary value (boundary is a unique string that separates content data)
contentType........... multipart/form-data; boundary=---------------------------7d235ade00f0
int lastIndex = contentType.lastIndexOf("=");
String boundary = contentType.substring(lastIndex+1, contentType.length());
// Stap 2.....bepaal de naam van de upload file
// filename.............. "C:\Documents and Settings\Administrator\Desktop\boodschap.txt"
String saveFile = file.substring(file.indexOf("filename=\"")+10);
saveFile = saveFile.substring(0,saveFile.indexOf("\n"));
saveFile = saveFile.substring(saveFile.lastIndexOf("\\")+1,saveFile.indexOf("\"")); //naam van de file...boodschap.txt
String saveFileName = saveFile;
// Stap 3..Bepaal MIME Type en de positie van eind mime type in string
voorbeeld: -----------------------------7d23d21220524 Content-Disposition: form-data; name="file0"; filename="C:\WINNT\Profiles\mvo\Desktop\z clob.txt" Content-Type: text/plain
String restant = "";
int pos; //position in upload file
// bijv .. filename="C:\Documents and Settings\Administrator\Desktop\boodschap.txt"
pos = file.indexOf("filename=\"");
//find position of content-disposition line
pos = file.indexOf("\n",pos)+1; // eing file naam + spatie
// onderstaand geeft bijv Content-Type: text/plain
restant = file.substring(pos,file.indexOf("\n",pos)-1);
restant = restant.substring(restant.indexOf(":")+2,restant.length()); // MIME type
String mimeType = restant;
//find position of eind content-type line
pos = file.indexOf("\n",pos)+1;
//find position of blank line
pos = file.indexOf("\n",pos)+1;
int start = pos;
// Stap 4 eind boundary
/*find the location of the next boundary marker (marking the end of the upload file data)*/
int boundaryLocation = file.indexOf(boundary,pos)-4; //waarom -4 ..? ziet er uit als linebreak spatie--boundary=-----------------------------7d21c9ae00f0
// Stap 5 en 6..de eigelijke te uploaden file in nieuwe byte file inserten
byte dataBytes2[] = new byte[boundaryLocation-start]; //declareren
for (int i=0;i<(boundaryLocation-start);i++) // inserten BELANGRIJK !!
dataBytes2=dataBytes[start+i];
String next_id = "0";
Statement statement = null;
Connection conn = null;
boolean pass = true;
ResultSet rs = null;
Statement stmt_empty = null;
oracle.sql.BLOB blb = null;
try
int vendor = DriverUtilities.ORACLE;
String username = ConnectionParams.userName;
String password = ConnectionParams.passWord;
String connStr = DriverUtilities.makeURL(vendor);
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
conn = DriverManager.getConnection(connStr,username, password);
if (conn==null){pass=false;}
} catch (Exception e){out.println("<P>" + "There was an error establishing a connection:");}
if (pass==true)
try
String seq_nextval ="select forum_blob_seq.nextval from dual";
statement = conn.createStatement();
ResultSet rset = statement.executeQuery(seq_nextval);
while (rset.next())
next_id = rset.getString(1);
if (next_id.equals("0"))
message = "Uploaden mislukt !...Er ging wat fout tijdens de interactie met de database";
responseRedirect = "/forum/uploaden.jsp?message="+message;
pass = false;
} catch (Exception e1) { out.println("Error blob1 : "+e1.toString()); };
} // end pass
if (pass==true)
try
Statement stmt2 = conn.createStatement();
String insert_empty_blob = "INSERT INTO test_blob(id "+
",filename "+
",mimetype "+
",kb) "+
"VALUES("+Integer.parseInt(next_id) +
",'"+saveFileName+"'"+
",'"+mimeType+"'"+
","+kb_size+")";
stmt2.executeQuery(insert_empty_blob);
conn.commit();
if (stmt2!= null) {stmt2.close();}else{stmt2.close();pass = false;}
} catch (Exception e2){
message = "Uploaden mislukt !...Er ging wat fout tijdens de interactie met de database";
responseRedirect = "/forum/uploaden.jsp?message="+message;
out.println("<P>" + "2. There was an error inserting mime type:");}
} //end pass
if (pass==true)
try
conn.setAutoCommit(false);
} catch (Exception e3) { pass = false; out.println("Error blob 3: "+e3.toString()); };
} //end pass
if (pass==true)
try
String Query_blob ="Select test_blob FROM test_blob where id="+next_id+" FOR UPDATE";
stmt_empty = conn.createStatement();
rs=stmt_empty.executeQuery(Query_blob);
} catch (Exception e4) {
pass = false;
out.println("Error blob 4: "+e4.toString());
message = "Uploaden mislukt !...Er ging wat fout tijdens de interactie met de database";
responseRedirect = "/forum/uploaden.jsp?message="+message;};
} //end pass
if (pass==true)
try
if (rs.next())
blb = ((OracleResultSet)rs).getBLOB(1);
OutputStream stmBlobStream = blb.getBinaryOutputStream();
try {
int iSize = blb.getBufferSize();
byte[] byBuffer = new byte[iSize];
int iLength = -1;
ByteArrayInputStream stmByteIn = new ByteArrayInputStream(dataBytes2);
try {
// while ( (iLength = in.read(byBuffer, 0, iSize)) != -1 )
while ( (iLength = stmByteIn.read(byBuffer, 0, iSize)) != -1 )
stmBlobStream.write(byBuffer, 0, iLength);
stmBlobStream.flush();
} // end while
} catch (Exception e5) {
pass=false;
out.println("Error blob 5: "+e5.toString());
message = "Uploaden mislukt !...Er ging wat fout tijdens de interactie met de database";
responseRedirect = "/forum/uploaden.jsp?message="+message; }
finally { conn.commit(); }
} catch (Exception e6) { out.println("Error blob 6: "+e6.toString()); };
} //end if rs.next()
else { throw new SQLException("Could not locate message record in database."); }
} catch (Exception e7) { out.println("Error blob : "+e7.toString()); };
} // end pass
} // end pass2
else //request is not multipart/form-data
message = "Uploaden mislukt !...Gegevens niet verstuurd via multipart/form-data.";
responseRedirect = "/forum/error.jsp?message="+message;
out.println("Request not multipart/form-data.");
catch(Exception e)
try
//print error message to standard out
out.println("Error in doPost: " + e);
//send error message to client
out.println("An unexpected error has occurred.");
out.println("Error description: " + e);
}catch (Exception f) {}
response.sendRedirect(responseRedirect);
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
doPost(request,response);
Regards
Martin -
How to add SDK jar file in NWDS
Dear Friends,
Currently i have an issue. I have to bring the BO favorite to my Portal Screen. My Portal is developed in PDK.
I have few links where the source code is writhen. Those link's are
/people/michael.nicholls/blog/2010/02/22/using-the-pdk-to-access-businessobjects-infoview
http://wiki.sdn.sap.com/wiki/display/Snippets/ReadInfoViewfavoritesfromthe+portal
I don't know more about BO. I have few points which i mentioned below.
1) How to add SDK jar file in NWDS.
2)DO i need any specific package for that.
Kindly help me with your Valuble suggestion and document.
Thanx in Advance.
Prashant KrishenHi,
for adding all the jar files in NWDS fallow below steps
windows >> preferences >>Java>>Java buildpath>>Libraries>>add external jars
Hope this helps
Edited by: polaka123 on Nov 13, 2010 12:44 PM -
Hi Friends,
We have 4 below file systems.
Sybase/TST/sapdata_1
Sybase/TST/sapdata_2
Sybase/TST/sapdata_3
Sybase/TST/sapdata_4
Already we have added one data file each in sapdata_1 and 2. Sapdata3 and 4 are emptry.
How to add new data file in sapdata3 or 4.
Please provide syntax for creating a new data file and steps for the same.
Regards,
Karthik.Just for the record: you have here the DBACockpit documentation:
https://websmp201.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000571562012E
And this is a sample of the extend to be executed:
Regards,
Victoria.
Maybe you are looking for
-
Technical note: Troubleshooting DRG-11207 errors / INSO filters.
All, The following is Metalink's Note 210319.1about troubleshooting DRG-11207 errors. If the content is of no help, I suggest contacting Oracle support. -Omar Subject: Troubleshooting DRG-11207 errors INTRODUCTION ============= Most of the errors enc
-
How to use an array in a SQL Query
Hi I need to use an array of numbers such as a VARRAY or Associated Index Array so that I can do the following SQL: select * from * where array is null or id is in array So that if the array is empty it will return all the records, and if the array i
-
3 big problems with my gmail and my iphone 4 inbox...
I know these are not new issues to most people, but I just haven't found any solutions yet. I've had 3 main issues with my gmail and iphone 4 inbox: 1) I've had the same issues of these weird messages from 1969, and also from 2000. I've done everythi
-
It seems that Java is not fully working in some pages
Because of a crash, I had to completely uninstall Firefox 3.5.3 and I installed Firefox 3.6.3. After that, some Java features are not working any more. Here I attached an example, where the "plus" buttons do nothing, but when opening the page with IE
-
Nokia 5233 Storage Question. You need to know this...
Hi, I'm not new to Discussions. PLEASE NOTE BEFORE READING THIS THREAD: I've digged EVERYwhere you can think of, so please have in mind that I come here because I really need to know this, I don't want to double-post anything or start a spam war or s