Including an External File
I have an external file that contains a declaration of an ActiveX object that I need to include in several JSP's. The external file resides on a separate web server from where our applications reside.
I can't use the Include directive or the <jsp:include> tag because they only permit relative URL's. I also have read that I can use the <c:import> action tag provided in the JSTL, but we do not use JSTL currently and it would require additional time to add that code to our applications and test it.
Is there any other way to include this external file in my JSP pages?
Thanks
Tony
Thanks for the help. It hasn't been decided where the external file will reside, but it will probably be on our mainframe running WebSphere so I don't think the second option will work.
We were hoping that we could just add 1 line of code to our pages to pull in the external file to simply the development process, but that doesn't look like it will work. We might have to create a second file that can be referenced with a relative URL, and have this file use one of the URL Connection classes to get the first file and write out its contents.
Anyway, thanks for the tips!
Tony
Similar Messages
-
For loop not working & way to include an external file
Hi everyone, i am new to java and am having some problems with my program.
I have a for loop but it doesnt work it completely gets ignored and i have
no idea why it does that.
IS there a way that i add another option in the menu to open an external file
which would be similar to this but it would be for cabinBooking. If so how do
i do that. if opening an external file is impossible then could you please show me an example of how to extend the booking class.
Any help would be appreciated.
Thank you very much
import java.util.Scanner;
import java.io.*;
public class Booking{
Booking(String bId, String bName,int bNum){
bookId = bId;
bookName = bName;
bookNum = bNum;
String bookId;
String bookName;
int bookNum;
public double calculateBookingPrice(){
double cost = bookNum * genBookingcost;
return cost;
double genBookingcost = 80;
public void summary(){
System.out.println();
System.out.println("Booking Number is: " + bookId + ", ");
System.out.println("Booking Made for : " + bookName);
System.out.println("Cost of booking = $" + calculateBookingPrice());
System.out.println();
public static void main(String[] args) throws IOException{
Scanner keyboard = new Scanner(System.in);
BufferedReader charInput = new BufferedReader
(new InputStreamReader (System.in));
int bookCount = 0;
char answer;
Booking[] bookings = new Booking[6];
do {
menu();
System.out.println("book Count = " + bookCount);
answer = charInput.readLine().charAt(0);
if (answer == 'a' || answer == 'A'){
System.out.println("Booking ID : ");
String idstring = keyboard.nextLine();
System.out.println("Booking Name : ");
String namestring = keyboard.nextLine();
System.out.println("number of people : ");
int ppl = keyboard.nextInt();
bookings[bookCount] = new Booking(idstring,namestring,ppl);
bookings[bookCount].summary();
bookCount++;
}else if (answer == 'b' || answer == 'B'){
System.out.println("Enter printing");
bookings[0].summary();
bookings[1].summary();
// this is the loop that it is ignoring GGRRRR!!!
for(int i = 0; i >= bookCount; i++){
System.out.println("Counter: " + i);
bookings.summary();
}else if (answer == 'x' || answer == 'X'){
System.out.println("Exiting the programme...");
System.out.println();
System.exit(0);
}while (answer != 'x' || answer != 'X');
public static void menu(){
System.out.println("********** Main Menu ***********");
System.out.println(" A. Make General Booking");
System.out.println(" B. Print Summary");
System.out.println(" X. Exit program");
System.out.println("*****************************");
System.out.println("Select one of the options above");in order to extend the Booking class, you can create anew class like this..
public class CabinBooking extends Booking
public CabinBooking( /*String bId, String bName,int bNum .. more args or fewer, or none.. */)
// add new methods or override ones from Booking
} -
I have a Windows 7 laptop using I tunes 64 and all my music files are
on an external disc. I rarely use I tunes and at one point moved all my files
(including the music files) from one external disc to another without
considering what affect this would have on the I tunes library. When I eventually
attempted to use I tunes, every selected a song from the library resulted in a
message stating that the file couldn't be located. After following some of the procedures
explained in this community I was able to reconnect the library back to where
the associated music files are presently stored. However, there are still 2
problems that need to be corrected. 1) Every song file now has a duplicate. One
file works and the other file will result in the same message stating that the
file couldn't be located. Before there were 4,000 songs in the library, now
there are 8,000 songs. I need to eliminate the 4,000 dead song files. 2) All
the playlists are still associated with the dead song files which makes the
playlists unusable. Can the playlists be reconnected to the usable files
without manually having to recreate them? Thanks in advance for the help.
sdkrSo am I understanding correctly?
You used your iPod as a hard drive (drag and drop) instead of having iTunes install the music?
If you used drag and drop your choices are different than if you used iTunes to transfer.
Good luck! -
How to include external files in JSP
hi,
How to include external files like image or javascript in to jsp pages.
I am using MVC frame work. So i have to use request dispatcher. While calling the pages trough dispatcher the external files are missing from the output. Also am using tomcat as server,web.xml(deployment descriptor ) is also configured.
regards
sreeWhen you use the request dispatcher, the relative path for all your ressources becomes the relative path of your calling serlvet and not the JSP/servlet that you call. Make sure to use the full relative path such as:
/PATH_TO_YOUR_DIRECTORY/myRessource.ext
NOT
SOME_DIRECTORY/myRessource.ext
Jeff -
How to include external files when building installer for a standalone executable?
Hi,
I was trying to build a stand alone executable from my Labview project and I was able to do it successfully. Now I would like to include a few external .txt files in the installer. Those .txt files have parameters/constants that will be used by the program, and my program needs to load/read them when running. For now I have to manually copy/paste them into the target machine, but I really hope the installer can do it automatically. I see there is a "data" folder in the installer, and that's where I hope those .txt files can be added into.
How can I do it? Can anyone give me some suggestions? Thanks!
Rgds
Harry
Solved!
Go to Solution.Norbert,
I could not find "Add file" when right clicking the project. See attached image please. Under "Project" I do have a "Add to project" but there is no option for external files. I did not find "Source" location either.
What did i do wrong? Is there any version requirement here? I have a 2010 base version. Thanks for your help.
Rgds,
Harry -
Strange problem displaying external files (css includes)
Hope somebody can help me with this. First of all, I'm running mac os x 10.4.11 using dreamweaver 8.0.2.
Just recently i've been unable to display any external files (namingly my css; attached as includes) when I open a local document. Tried to delete my "site cache" as well as re-creating the site prefs and made sure "Display External Files" is checked under COMMANDS. Still nothing. Anyone have a idea it just all of a sudden stopped displaying all external fles???Peter,
I tried testing the RSS feed using a FeedReader, and it works with that. But, when I try feed the same URL ( http://rss.cnn.com/rss/cnn_topstories.rss ) as the XML source in the Omniportlet, I get the following error message:
Error
Failed to open specified URL. Check the following: is the URL is active; is there a valid proxy setting or, if HTTP authentication is required, check user name and password. [http://rss.cnn.com/rss/cnn_topstories.rss]
Here is how the proxy is defined in the Provider.xml file:
<proxyInfo class="oracle.portal.provider.v2.ProxyInformation">
<httpProxyHost>www-proxy.us.oracle.com</httpProxyHost>
<httpProxyPort>80</httpProxyPort>
<proxyUser>my Oracle Single-SignOn username</proxyUser>
<proxyPassword>my Oracle Single-signOn pwd</proxyPassword>
</proxyInfo>
I am on the Oracle Intranet. So, please let me know how I could reach you offline, if you think that will make things easier to resolve this problem.
I appreciate your help.
Thanks,
Kalyan -
Open file(including external file) problem on Lion
I have a problem with AppleScript on Lion (OS 10.7) and cannot know what to do...
I'd like to open an alias file which has some external files. (For example, adobe illustrator's .ai file with some .png or Logic Pro file with audio files) But I cannot do it, it was working perfectoly on Mac OS 10.6. It seems file system had changed on Lion....??
Opening normal file on Lion >> it works.
tell application "Finder"
activate
open file "test.rtf" of folder "scriptTest" of folder "Desktop" of home
end tell
Opening an alias of normal file on Lion >> it works.
tell application "Finder"
activate
open file "testAlias" of folder "scriptTest" of folder "Desktop" of home
end tell
Opening an file with external files on Lion >> it works.
tell application "Finder"
activate
open file "testWithImagefiles.ai" of folder "scriptTest" of folder "Desktop" of home
end tell
Opening an alias file with external files >> it works on 10.6 but NOT on Lion, just open the window ...
tell application "Finder"
activate
open file "testWithImagefiles.ai" of folder "scriptTest" of folder "Desktop" of home
end tell
Is there any idea?I'm not sure what the problem here is - your statement that it "just opens the window" doesn't mean much. opens what window? a FInder window? an new illustrator window? a window in your living room? (the last would be very cool, mind you...)
at any rate, I think the problem is in some confusion over the word 'alias'. In applescript, alias just means any file system referent: e.g. alias "HD:Users:yourname" is a path specification for your home folder. file system objects that point to other file system objects are referred to as alias files. so try one of these two versions instead:
-- using alias file directly
open alias file "testWithImagefilesAlias" of folder "scriptTest" of folder "Desktop" of home
-- resolving alias file first
open original item of (alias file "testWithImagefilesAlias" of folder "scriptTest" of folder "Desktop" of home) -
Reading the Blob and writing it to an external file in an xml tree format
Hi,
We have a table by name clarity_response_log and content of the column(Response_file) is BLOB and we have xml file or xml content in that column. Most probably the column or table may be having more than 5 records and hence we need to read the corresponding blob content and write to an external file.
CREATE TABLE CLARITY_RESPONSE_LOG
REQUEST_CODE NUMBER,
RESPONSE_FILE BLOB,
DATE_CRATED DATE NOT NULL,
CREATED_BY NUMBER NOT NULL,
UPDATED_BY NUMBER DEFAULT 1,
DATE_UPDATED VARCHAR2(20 BYTE) DEFAULT SYSDATE
)The xml content in the insert statement is very small because of some reason and cannot be made public and indeed we have a very big xml file stored in the BLOB column or Response_File column
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(5, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(6, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(7, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(8, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(9, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');THe corresponding proc for reading the data and writing the data to an external file goes something like this
SET serveroutput ON
DECLARE
vstart NUMBER := 1;
bytelen NUMBER := 32000;
len NUMBER;
my_vr RAW (32000);
x NUMBER;
l_output UTL_FILE.FILE_TYPE;
BEGIN
-- define output directory
l_output :=
UTL_FILE.FOPEN ('CWFSTORE_RESPONCE_XML', 'extract500.txt', 'wb', 32760);
vstart := 1;
bytelen := 32000;
---get the Blob locator
FOR rec IN (SELECT response_file vblob
FROM clarity_response_log
WHERE TRUNC (date_crated) = TRUNC (SYSDATE - 1))
LOOP
--get length of the blob
len := DBMS_LOB.getlength (rec.vblob);
DBMS_OUTPUT.PUT_LINE (len);
x := len;
---- If small enough for a single write
IF len < 32760
THEN
UTL_FILE.put_raw (l_output, rec.vblob);
UTL_FILE.FFLUSH (l_output);
ELSE
-------- write in pieces
vstart := 1;
WHILE vstart < len AND bytelen > 0
LOOP
DBMS_LOB.READ (rec.vblob, bytelen, vstart, my_vr);
UTL_FILE.put_raw (l_output, my_vr);
UTL_FILE.FFLUSH (l_output);
---------------- set the start position for the next cut
vstart := vstart + bytelen;
---------- set the end position if less than 32000 bytes
x := x - bytelen;
IF x < 32000
THEN
bytelen := x;
END IF;
UTL_FILE.NEW_LINE (l_output);
END LOOP;
----------------- --- UTL_FILE.NEW_LINE(l_output);
END IF;
END LOOP;
UTL_FILE.FCLOSE (l_output);
END;The above code works well and all the records or xml contents are being written simultaneously adjacent to each other but we each records must be written to a new line or there must be a line gap or a blank line between any two records
the code which I get is as follow all all xml data comes on a single line
<?xml version="1.0" encoding="ISO-8859-1"?><emp><empno>7369</empno><ename>James</ename><job>Manager</job><salary>1000</salary></emp><?xml version="1.0" encoding="ISO-8859-1"?><emp><empno>7370</empno><ename>charles</ename><job>President</job><salary>500</salary></emp>But the code written to an external file has to be something like this.
<?xml version="1.0" encoding="ISO-8859-1"?>
<emp>
<empno>7369</empno>
<ename>James</ename>
<job>Manager</job>
<salary>1000</salary>
</emp>
<?xml version="1.0" encoding="ISO-8859-1"?>
<emp>
<empno>7370</empno>
<ename>charles</ename>
<job>President</job>
<salary>500</salary>
</emp>Please adviceWhat was wrong with the previous answers given on your other thread:
Export Blob data to text file(-29285-ORA-29285: file write error)
If there's a continuing issue, stay with the same thread, don't just ask the same question again and again, it's really Pi**es people off and causes confusion as not everyone will be familiar with what answers you've already had. You're just wasting people's time by doing that.
As already mentioned before, convert your BLOB to a CLOB and then to XMLTYPE where it can be treated as XML and written out to file in a variety of ways including the way I showed you on the other thread.
You really seem to be struggling to get the worst possible way to work. -
Problem writing external file to externally mounted disk in Windows
Folks,
I've got a puzzling problem with a simple OWB mapping where I'm dumping the contents of a table to an external file.
Versions are OWB v 11.2.0.2 64-bits on Oracle RDBMS 11.2.0.2 Windows 2007 64-bits Enterprise Server.
When the external files module is hooked up to a location that points to a local disk and directory on the OWB-server, everything works fine - files are created and written.
When the external files module is hooked up to a location that points to a mounted disk on another Windows 2007 64-bits Enterprise Server, I get +"Invalid Path for target file, check if connector is deployed correctly".+
The "File System Location Path" in OWB is set to "N:" (no slashes either way). "Test Connection" reports OK.
I've given both the Oracle os-user and "Everyone" (for good measure) all rights on the mounted disk, and I can see that the generated package code is using the correct Directory, and the Directory Path is the correct one on the server. The mounted disk (N:) should appear as a local disk to Oracle as far as I can see. I'm able to create and delete files on the disk using command line on the OWB/DB-server.
I'm scratching my head on this one....then mapped that share as a network drive (N:) on server A (the OWB/DB-server)I think that problem was with different accounts used for run Oracle database (usually database instance run under SYSTEM account) and which you used to map share (it was interactive session). Even when you made this map persistent (enable "Reconnect at logon" option during mapping) you don't grant access to this drive to other accounts (including SYSTEM ) - this drive will not be visible to other users.
I think it is possible to create "persistent" network drive mapping for Oracle database context with specification non-SYSTEM account (domain or server local) for running Oracle database instance (and Oracle Listener service).
Also it seems there is a workaround to access mapped network drive under SYSTEM account:
http://stackoverflow.com/questions/182750/how-to-map-a-network-drive-to-be-used-by-a-service
Regards,
Oleg -
Hi,
How do i include an external .js(JavaScript) file into a JSP file?My .js file is located in some package(lets say abc.jar). Below is my application structure:-
jsp
|
->MyJsp.jsp
lib
|
|
abc.jar
|
|
->com.abc.test
|
|
->Test.java
->abc.jsHow do i include "abc.js" file in "MyJsp.jsp" file?
Please help.
Thanks,
Kiran
Edited by: Adimulam on Jun 2, 2008 1:22 PMEven this is also not possible because, the code in that package is developed by DWR and i am just adding it to my lib folder and importing the respective classes. In the same manner i need to include the *.js* file in the JSP.It took me about 3 minutes reading through the [DWR Getting Started|http://getahead.org/dwr/getstarted] page to learn that you don't have to do any of that. Perhaps you should read that page?
-
Hi,
I would like to read and write "external" files in a midlet. I mean, I want to be able to create a text file on a PC, transfer it to the phone, and read it (and vice versa).
I know there is JSR-75. I even found an example:
[Java Tips - How to Access Local File Systems from J2ME devices using FileConnection API|http://www.java-tips.org/java-me-tips/midp/how-to-access-local-file-systems-from-j2me-devices-using-fileconnectio-2.html]
It works on Netbeans, but it doesn't work in my phone. The midlet just present a white form and doesn't do anything.
I think the problem is with permissions. The example includes the following "In order to overcome security issues MIDlet needs to include requested file permission in its JAD file under MIDLet-Permission property."
I know how to edit the JAD file in Netbeans. My question is what is the value given to the property? Is there any other way to give permissions to the midlet in order to read and write files?
Thanks
Edited by: King_Guanaco on Feb 16, 2010 8:08 AMwell... using a xml its very fine to implement diferent things
mabe to make a same app whit diferent theme
ex .. changing the xml to load diferents img
my question its... you can use a load function whit as3 on iphone ....for load a xml file??
thanks guy
lucky on the code!!! -
Links to external files don't work
Hello
Using RH 8.02 and converting linked Word docs (Word 2002) to WebHelp. These are policies and procedures that reference external documents.
In my Word doc I have a hyperlink to an external document. This doc is on a network server. In Word I added the hyperlink and it appeared as a relative path, such as ../RelatedDocs/RelDoc1.doc.
The referenced file is an external file, and I don't want to add it to RH because it may be updated; I just want to link to it so that a user gets the latest version.
When I update the HTML files in RH I see this in my HTML file:
<a href="file:////terminus/avbase_techsupport/av-base documents/supportmaster/documentationshare/relateddocs/reldoc1.doc">Related Doc 1</a>
This is the correct absolute path for the referenced file. Note the file://// prefix, with four forward slashes.
When I generate WebHelp, the link doesn't work. Nothing happens.
I tried the following:
1. Copied the whole path into my Windows Start > Run box and hit Enter. Nothing happens.
2. Removed two of the forward slashes and copied it again into the Run box. Now the file opens in Word.
I also tried removing the hyperlinks from the Word docs and adding them through RH instead. Same result.
Why does RH add four forward slashes to the prefix? What can I do to get these external links working?
Thanks for your help.
Roger Shuttleworth
London, CanadaHello Peter
I apologize for taking so long to respond. I just received a new computer with Vista and have had to set it up. Here is what happens:
1. In Word, I have a doc policy1.doc that contains a hyperlink to reldoc1.doc. The two files are in different folders. When I insert the link, Word shows it as a relative path ../RelatedDocs/reldoc1.doc. When I hover over it in the Word doc, it shows as an absolute path starting with file:///\\theserver, etc.
2. My RH project includes policy1.doc but not reldoc1.doc. I update policy1.doc in RH. In the HTML topic file (HTML view) the link is:
<a href="file:////theserver/path/reldoc1.doc">Link text</a>. Note the four forward slashes.
3. I save all project files and generate WebHelp.
4. In the resultant web page (in Firefox), I click the link in policy1 and nothing happens. The status bar shows the path the same as above.
5. I navigate to the output !SSL! and find the index page, and open it in Internet Explorer 8. The link shows in the status bar as file://theserver/path/reldoc1.doc, and when clicked IE opens the Word doc.
So in this case Firefox doesn't open the link but IE does.
Here is another scenario:
1. I have no links in myWord docs.
2. I generate topic files in RH using the linked Word docs.
3. In RH, in the HTML file for policy1 (policy1.htm) I add a link to reldoc1.doc. I choose the file protocol. RH asks me if I want to copy the doc into the project folder, and I say No.
4. I check the HTML for policy1.htm and see that it has the link as follows:
<a href="file://J:/Documents/rest of folder path/RelDoc1.doc">Related Doc 1</a>
(Going to Hyperlink Properties shows the same path.) Note the two forward slashes.
5. I save all files in the project and click Generate Primary Layout (which is WebHelp). A dialog asks if I want to update <some file or other, but I can't see which one because that darned dialog box is too small, but I expect it's policy1.htm>.
6. I say No. The output is generated and I view it in Firefox. The link works and has a path in the status bar as:
<a href="file://J:/Documents/rest of folder path/RelDoc1.doc">Related Doc 1</a>
Note the three forward slashes.
7. I view the index.htm file in IE and it works.
As a variant of the above, instead of saying No when asked if I want to update the file, I say Yes.
1.The HTML of policy1.htm now shows the link as:
<a href="file:////server/rest of path/reldoc1.doc">Related Doc 1</a>
Note the four forward slashes again.
2. The link is as shown in the status bar of Firefox is now set to:
<a href="file:////server/rest of path/reldoc1.doc">Related Doc 1</a>
It doesn't work.
2. The same link shown in IE status bar has two forward slashes (even though the source has four), and it works.
So in answer to your question, the link definitely changes within RH. The two browsers deal with things differently, with IE seeing a file://// link as file://.
Incidentally, I did some research on the file:// protocol and came up with:
http://kb.mozillazine.org/Firefox_:_Issues_:_Links_to_Local_Pages_Don%27t_Work
The answer seems to be:
1. Add the links within RH.
2. Don't update when generating output.
3. If possible, get users to use IE instead of FF.
Either way, it's not very satisfactory for my purposes.
Regards,
Roger -
Pull down menu information from external file
I want my pull down menu information in a external file, so I can use it. Are multiple pages without inserting the code each time so I can updated in one place.
<!DOCTYPE html>
<html lang="en-es">
<head>
</head>
<body>
<form name="UnitTest" action="Inspector.html" method="POST">
<div align="center">
<select name="Inspector" multiple size="1">
<option value="1234">1234 </option>
<option value="56789">56789 </option>
<option value="98765">4321 </option>
</select>
</div>
</form>
</body>
</html>
SandyI went to the Stack Overflow website http://stackoverflow.com/questions/8988855/include-another-html-file-in-a-html-file and found some helpful code. It did one thing funny that I am hoping you may build a help with. This is the code I found and using;
<!--------------------------------------- Inspector Pull Down --------------------------------------------->
<label for="inspector_inspector">Inspector / <span2>Inspector</span2>:</label>
<br>
<!--[if !IE]> <-->
<object type="text/html" data="inspector.html">
<p>backup content</p>
</object>
<!--> <![endif]-->
<!--****http://stackoverflow.com/questions/8988855/include-another-html-file-in-a-html-file*****-->
<!--------------------------------------- Assembler Pull Down ------------------------------------------->
<label for="assembler_operador">Assembler/<span2>Operador</span2>:</label>
<br>
<!--[if !IE]> <-->
<object type="text/html" data="assembler.html">
<p>backup content</p>
</object>
<!--> <![endif]-->
How do I get rid of these big gaps? -
Search external files on RoboHelp Server
With the RoboHelp Server (previously called the RoboEngine)
installed on a server, you can add external files to your WebHelp
or FlashHelp project and have the Search tab also search the
contents of those files (PDF, DOC, XLS, PPT, and HTML). All you
have to do is create an HTTP or FTP link to the external files and
the RoboHelp Server will scan them and add them to the search
index.Hi, rune1io
From what I understand, the (PPT, DOC, XLS, TXT, and PDF)
files would have to be included in the project, either in baggage
files or placed in the root of your project folder on the server.
Here is a snip from the online help regarding this:
<snip>
Enhanced indexing support for Search
In RoboHelp Server 8, for all the WebHelp Pro and FlashHelp
Pro projects, you can search for any topics and baggage files (PPT,
DOC, XLS, TXT, and PDF) included in a project. You can also add a
reference to these files in a topic, and the baggage files are
displayed in the search results.
For server-side indexing, you can copy the required baggage
files to the project folder. The RoboHelp server reads these files
and re-creates the index at the time of scheduled scanning. Also,
if you do not include these baggage files in the project, the
server still indexes them, provided they exist in the project
folder.
</snip>
So it seems that a link to an external file via HTTP or FTP
would not be indexed. I will try to seek further clarification on
this, but that's the way I read it.
Thanx,
john -
Launch External Files from SSRS
I have a report that will list the names of files that are attached to this report in the database. I would like to include the list of files from the database and allow the users to click or double click the file name and have the file load.
Is there a way for SSRS to do this? The files can be in multiple formats, and in the project that adds the files we can use:
System.Diagnostics.Process.Start(filepath)
And it will launch the correct process to view the files. I have stored the the file itself in an image column, and I also have the full path and the file name in columns as well so I could create a dataset to retrieve the file names and show them
on the report.
Anyone have any suggestions?
Thanks.Hi katghoti,
If I understand correctly, you want to embed external files (word, pdf, image etc.) into a report in Reporting Services. If in this scenario, I suggest that you can use the following two methods to achieve your requirement:
Embed these files into database.
1) Use the SQL commands to embed these files in database as the image data.
2) Use the .net language (C#, VB) to convert this data into the image.
3) Use the image control to show these images, which are files embedded in database.
Reference:
How to embed a pdf document in Reporting Services
Upload these files in the report server, access them using URL.
1) We can upload these files in the report manager.
2) Adding hyperlinks to reports to link to these files stored on the report server.
Reference:
URL Access Parameter Reference in Reporting Services
How to add a Hyperlink to a URL in Reporting Services
Hope this helps.
Thanks,
Katherine Xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
VAT registration No. in Company Code Global Parameters
Hi All, I have tried to enter the Vat registration No. for a New Zealand Company Code and i have faced the error as "Entry of a VAT reg.no.is only possible for co.codes in EC countries" Pls let me know config step to enter the VAT reg no irrespective
-
Can I get the wait parameter (ex. PT10M) from a variable? I've tried with this, but it don't seems to work: <wait xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" for="bpws:getVariableData("pippo", "payload", "/tns:ProvaCatapultRespons
-
MacBook Pro Retina display with scratch/crack in the glass
Hi, Can it be real, that on my new MacBook Pro Retina display I have a little scratch/crack in the glass out of the box? You can only see it if you have light (e.g withe) background on the display. I hope Apple Care will replace it. Does anybody else
-
'iTunes has stopped working' during music sync!
Hi, I've had this issue for months now, and it occurs with both my iPod nano and my iPhone. The sync goes fine, until it comes to copying new tracks over, then it crashes! Does anyone have any ideas? I haven't been able to sync my devices for months
-
Configuring Multiple Campus Environment
Hi, Being fairly new to IS-HER, I need your valuable inputs for configuring an existing campus structure to incorporate multiple campus environment. I have the requirement as below: 1. We are coming up with a new campus in a different location. So th