Subject Retrieving Word docs from the database thru reports

I have saved Word documents in an Oracle 7.3 database using OLE
thru Forms. I want to retrieve the docs in the reports
automatically as the particular report runs..How can i retrieve
these docs in from the developer reports...Can any one help me
in this problem
null

bumping to the top!

Similar Messages

  • Failed to retrieve data from the database crystal reports 2008 in SAP  B1

    Hello friends,
                 I am using Crystal report 2008 with SAP B1 PL 8.8. When I run any report,  it runs correctly from Crystal Report. But whenever I try to open the same report through SAP ( Tools -> Preview External Crystal Report ), it prompts the parameters for that report and then open up the crystal report window and throws an Error message ("failed to retrieve data from the database. Details [Database Vendor Code: 156]").
               Please any one suggest me the corrective solution.
    Thanks in Advance,
    Keyur Raval.

    I had the same problem in SAP B1 2007. Report worked fine except when it was open from B1. Generally there may be different problems. In my case the same problem was caused by using some procedure which was in a specific schema. Changing the schema into "dbo" solved the problem.
    Radoslaw Blaniarz

  • Inserting and retrieving Word docs from a custom table with LOB column

    Hi,
    I'm sure I'm not looking around in the right place for some docs on this.
    Basically I need to build a custom interface in Web PL/SQL to allow a MS Word doc to be uploaded for a user's browser and also a mechanism to retrieve the doc.
    Not sure what is the 'best' column datatype to use for this either.
    Portal Forms are out of the question due to inflexibility of application.
    Cheers,
    John

    bumping to the top!

  • I am using the database connectivity toolkit to retrieve data using a SQL query. The database has 1 million records, I am retrieving 4000 records from the database and the results are taking too long to get, is there any way of speeding it up?

    I am using the "fetch all" vi to do this, but it is retrieving one record at a time, (if you examine the block diagram) How can i retrieve all records in a faster more efficient manner?

    If this isn't faster than your previous method, then I think you found the wrong example. If you have the Database Connectivity Toolkit installed, then go to the LabVIEW Help menu and select "Find Examples". It defaults to searching for tasks, so open the "Communicating with External Applications" and "Databases" and open the Read All Data. The List Column names just gives the correct header to the resulting table and is a fast operation. That's not what you are supposed to be looking at ... it's the DBTools Select All Data subVI that is the important one. If you open it and look at its diagram, you'll see that it uses a completely different set of ADO methods and properties to retrieve all the data.

  • Retrieving an image from the database and printing it

    Can anybody help please
    i dont know how to retreive an image from a image database and send to the printer.
    The image is stored in the database in cells ( not as a path to a file).

    Hi,
    I want to print a gif image.
    How can i get this done?
    I am trying graphicsobject.drawImage(....),it prints the image only once.If i try second time the image wont be printed,where as if i switch off and then switch on the printer and try again ,then it will print.I am facing the same problem with a HP Laser Jet as well as a thermal Printer.Actually i want to print a bar code.
    some body pls help me to sort this issue.
    Regards,
    ciju
    [email protected]

  • How to retrieve characters like '£' from the database and write to xml file

    Hi ,
    I have a requirement to retrieve the data from database and write to files in XML format.
    I am able to do so successfuly by using XMLElement tag and writing to file through UTL_File package.
    All characters like <&@^ get converted properly, but when it comes to multibyte chars like '£', they are not able to get converted as it is.
    Can somebody please advise me how to go ahead.
    Regards

    Thanks odie.
    The nls_charset for my database is WE8ISO8859P1 and database version is Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi.
    The data (with pound sign) is sitting in one of the columns of the table and when i query it directly, I am able to view it properly.
    However when I use the below code to retrieve in XML format and print it to file, it gets changed. This file is also passed to one of the application GUI where this XML gets processsed and it is not visible properly.
    below id the sample abstract of code I am using.
    Declare
    l_file UTL_FILE.FILE_TYPE;
    l_clob CLOB;
    l_buffer VARCHAR2(32767);
    l_amount BINARY_INTEGER := 32767;
    l_pos INTEGER := 1;
    Begin
    SELECT XMLElement("case",
    XMLElement("comments",
    XMLElement("comment",
    XMLElement("comments",a.COMMENTS)
    ).getClobVal() val1 into l_clob
    FROM TO_COMMENTS a
    l_file :=
    UTL_FILE.fopen (XMLDIR,
    test.xml,
    'w',
    32767);
    LOOP
    DBMS_LOB.read (l_clob,
    l_amount,
    l_pos,
    l_buffer);
    UTL_FILE.put_line (l_file, l_buffer);
    l_pos := l_pos + l_amount;
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    DBMS_OUTPUT.NEW_LINE('Reached end of file');
    END;
    The comments column given contains the character like pound.
    And once the file is generated and i see using the vi editor, the char is not viewable properly like £
    And when the same is passed to GUI application to be processed, its not viewable propely in GUI from IE as well like �.

  • How to retrieve the large data from the database

    in my program, I want to operate the data retrieved from the database. but there are too many rows in the ResultSet . so when I try to get the ReusltSet from the database, the error of "java.lang.OutOfMemoryError
    " will appear . because there are two million rows contained in the ResultSet, So I want to know whether there are some methods to deal with this problem.
    anyone can give me some tips or recommend some papers and books to me.
    thanks!!!!

    the program is developed for the data warehourse, you know there is a large number of data in data warehourse. so I think I have to deal with the very large ResultSet in my program, this code is a example for my problem :
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class Untitled1 {
        String user = "";
        String password = "";
        public void createTable() {
            try {
                Class.forName("com.sybase.jdbc3.jdbc.SybDriver");
                System.out.println("Good to go");
                String url = "jdbc:sybase:Tds:59.64.137.240:5000/TJ";
                Connection conn = DriverManager.getConnection(url, user, password);
                System.out.println("connect successfully!");
    //            Statement st1 = conn.createStatement();
                String sqlsentence2 = "SELECT DISTINCT caller FROM upcdr";
                PreparedStatement st2 = conn.prepareStatement(sqlsentence2);
                PreparedStatement st3 = conn.prepareStatement("INSERT INTO callerTable VALUES(?)");
                System.out.println("createstatement successfully!");
    //            String sqlsentence1 = "CREATE TABLE callerTable (caller CHAR(18))";
    //            st1.executeUpdate(sqlsentence1);
    //            System.out.println(sqlsentence1);
    //            st1.close();
                ResultSet rs = st2.executeQuery();
                while (rs.next()) {
                    st3.setString(1, rs.getString("caller"));
                    st3.executeUpdate();
                    System.out.println(rs.getString("caller"));
                st2.close();
                st3.close();
            } catch (SQLException e) {
                e.printStackTrace();
                System.out.println(e.getMessage());
               System.out.println( e.getSQLState());
               System.out.println( e.getErrorCode());
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
        public static void main(String args[]) {
            Untitled1 cct = new Untitled1();
            cct.createTable();
    }at here, the table "upcdr" is very large, it has two million rows. when I run this program , the error will happen. someone told me that if I use the cursor, because it will retrieve one row from the database every time, so it will not produce a very large ResultSet, then the memory would not be used out. but I am not familiar with that aspect. so I think if anyone can give me some advice.
    thanks!!!!

  • Importing Word docs from a RH for Word project

    I have a HUGE RH for Word project that I'm trying to convert
    to RHTML (RH Office X5). We generate CHM with this project, and
    we've got map ids for all topics. I've been to Peter Grainge's site
    to get some ideas, but I don't think they're going to work. There
    are so many Word files and topics (537 and 2,974, respectively)
    that the more I think about it, the more I think that a conversion
    to RH HTML might not be worth it.
    When I tried to import all of the Word documents and also
    convert the TOC (converting the Index isn't an option since it
    never worked with our large number of Word docs) and use the
    HTMLHelp.css (using the Import wizard), RH HTML crashed twice after
    40 minutes.
    So, I created a new RH HTML project and tried to import just
    one Word doc from the RH for Word project, and selected the same
    wizard options. As I expected, the Word doc imported, but even
    though I told RH to split the topics on Heading 2, it also copied
    in the characters (#S+@) that preceded every topic heading and
    incorporated them into the Topic Title. AND, RH HTML did not
    "convert" the TOC - it was blank.
    In another post I saw a reference to this patch -
    http://www.adobe.com/support/security/bulletins/apsb07-10.html.
    I'm not sure it's related, although when I examined my second
    failed import attempt, the imported topics were visible in the
    project folder only by using Windows Explorer - RoboHelp HTML did
    not display them from within RoboHelp.
    Does anyone know if this is the patch that will fix this
    issue as well?
    By the way, based on the number of questions I've seen posted
    about RH for Word 7 with zero replies, I'm thinking I'm going to
    run into issues as well, even if we leave it in RH for Word when we
    upgrade to version 7. It seems that its size is an issue for RH
    HTML.
    Thanks,
    Jim
    Thanks,
    Jim

    Hi Jim,
    just as an encouragement: we sucessfully converted a HUGE RH
    for Word project (4,300 topics) to RH HTML a while ago, including
    TOC, index and everything. I must admit though that we had all
    those topics in only 25 word documents. Maybe you can reduce the
    number of documents by moving the topics? There will always be
    problems you run into and afterward, we had to go through every
    single topic and check the formatting, but I guess you'd always
    have to do this. But I think it's worth it, working in HTML is so
    much more convenient.
    Good luck!
    Kathrin

  • How can i retrieve documents(.doc,.pdf, .txt) using forms from the database.

    How can i retrieve documents(e.g .doc,.pdf, .txt etc) using forms from the database.
    i inserted the documents using sql*loader, below is the control and data files.
    -- control file
    LOAD DATA
    infile 'load.txt'
    INTO TABLE husman
    APPEND
    FIELDS TERMINATED BY ','
    (id integer external,
    fname FILLER CHAR(50),
    docu LOBFILE(fname) TERMINATED BY EOF)
    --data file
    1,../husman/dell.doc,
    2,../husman/me.pdf,
    3,../husman/export.txt,
    in the form i have a text field to display the id and an OLE container to display the document as an icon. but when i execute query, i only get the id number and not the document.
    any help will be appreciated.
    Thanks
    Hussein Saiger

    Step by step
    1. Erase all contents and settings
    2. You'll be asked twice to confirm
    3. You'll see Apple logo and progress bar
    4. You'll see a big iPad logo on screen
    5. Configuration start
    6. Set language
    7. Set country
    8. Enable Location Service
    9. Select network, enter password and join network
    10. You'll be given 3 options (a) Setup as New iPad (b) Restore from iCloud Backup (c) Restore from iTune Backup
    11. Selected Restore from iCloud Backup
    12. You'll be required to enter Apple ID and Password
    13. Agree to Terms and Conditions
    14. Select Backup file
    15. You'll see progress bar
    16. Red slider will appear; slide to unlock; step #1 to #16 is fast
    17. Pre-installed apps will be restored first
    18. Message: Purchased apps and media will now be automatically downloaded
    19. You'll see a pageful of apps with Waiting/Loading/Installing
    20. Message: Some apps cannot be downloaded, please sync with computer

  • Failed to retrieve data from the database when adding jdbc datasource

    I'm having problems adding some tables to the selected tables list using the database expert.
    I get the error messages "Failed to retrieve data from the database" followed by "Unknown Database Connection Error".
    I thought it may be a permissions issue as it only affects some tables, but I can access the same tables fine using the same user through Oracle SQL Developer.
    The database is Oracle 10g Express Editions
    Crystal version is 12.0.0.683
    Running on Windows XP
    Any suggestions would be much appreciated.

    Hi Stuart
    Please refer SAP note 1218714 for this issue. The link to this article ia as follows:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333733313334%7D.do
    You can search for this note on the SDN site.
    Hope this helps.
    Thanks!

  • Crystal Reports - Failed to retrieve data from the database

    Hi There,
    I'm hoping that somebody can help me.
    I've developed a crystal report from a stored procedure which I wrote. I can execute the stored procedure within SQL Server and within the Crystal Reports designer without any errors. Furthermore, I have imported the report into sap and can run it within SAP from the server without any errors. SAP version 8.81 PL5
    The issue is that when it's run from a client machine, I get the following error: "Failed to retrieve data from the database. Details: Database Vendor Code: 156. Error in the File RCR10010 {tempfile location}
    Here's a list of things which I have tried, all to no avail:
    - Checked user permissions to ensure that they have proper authorizations
    - Re-set the datasource connection and re-imported the report to SAP.
    - Exported the report and reviewed the datasource connection and re-imported to SAP.
    - Tried to run the report on multiple machines to ensure that it's not machine specific
    - Tried to run the report using different users to ensure it's not user specific.
    - Tested other reports built from stored procedures on client machines to ensure that they work.
    Any assistance in this would be GREATLY appreciated.
    Thank you

    After further testing, we found that the report could be run within SAP on any work station which had the CR designer installed on it.
    As it turns out, the procedure which I wrote has temp tables in it.  The runtimes built into the SAP client install do not support creating temp tables when executing the report from within SAP.  Which is why the report could not retreive data.
    To work around this, I installed external runtimes which were the same version of the Crystal Report and now the report can be run within SAP from any workstation which has the external runtimes (and not just the runtimes within the SAP client).
    I hope this makes sense.

  • Can anyone tell me why I am unable to download a template word doc from webmail onto my mac without it opening in text format? I just need the original document format.

    Can anyone tell me why I am unable to download a template word doc from webmail onto my mac without it opening in text format? I just need the original document format.

    Where to begin... and why would you ask here? (workstation owners)
    Places I can think to try, after google of course....
    Forum devoted to something like Word / Mactopia or Pages.... whether you are using Office 2011, and no idea what browser or webmail (IMAP, Gmail, other)
    And then there really are notebook with subforum for MacBook Pro
    Apple Site Map
    Apple Support Mail
    Apple Support

  • Can I use stored procedures to improve data retrieval from the database?

    I have been requested to get multiple pieces of data from multiple tables and return the output in an array for use in a Java program.
    Eliminating multiple calls to the database. Currently, the data is retrieved from the database in multiple steps but to eliminate
    possible bottlenecks in the future, I created several complex sql statements.
    For instance,
    In the first table there are 20 columns of data. has a column named type which can have the one of these values: line, inn, or bsc
    In the second table there are 6 columns of data. has the additional data for type line
    In the third table there are 7 columns of data. has the additional data for type inn
    In the fourth table there are 2 columns of data. has data regardless of type
    etc...
    Depending on a specific column value retrieved (inn) from the first table:
    I need to collect all 20 columns in the first table and get all the columns in third table and the columns in the fourth table, etc.
    Question: How can I remove the duplicate primary key columns without specifying for each table the column names to be returned?
    I used the wildcard SELECT * because I didn't want to have to update the retrieval methods if additional columns are added to these
    secondary tables.
    example of my sql for type inn data:
    select * from first_table f, third_table s, fourth_table t
    where (f.column1='xxxx' and f.column2='xxxx') (the 'xxxx' are passed into the sql statement)
    and
    ((s.column1=f.column1 and s.column2=f.column2)
    and
    (f.column3=t.column1));
    Currently, I've duplicated the separate sqls for each valid type found in the first table (at least a dozen types). The only difference is
    the table name. Instead of the third table I use the second table, etc.
    The MAIN Question: How can I set this up to have one sql to handle each type? I want to eliminate having over a dozen duplicated sqls. Can I
    incorporate this into a stored procedure or something? If so, how? Can anyone provide sample coding?
    Your help is very much appreciated. Thank you.
    GD

    Hi, Salah.
    Use "Exec" in your query to run procedures.
    SAPbobsCOM.Recordset     oRS;
    oRS = (SAPbobsCOM.Recordset)pCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
    oRS.DoQuery ("EXEC YourStoredProcName");
    Triggers are not supported in SDK.
    Regards,
    Aleksey

  • Failed to retrieve data from the database/invalid argument provided when employing link between two web services datasources

    Post Author: vpost
    CA Forum: Data Connectivity and SQL
    I am trying to join information from two related web services within CR XI. I have successfully set up the web services as data sources have been able to get to the point where I get good data back. However, when I try to pull in certain fields, I get an error that says "Failed to retrieve data from the database/invalid argument provided". Here's the scenario:
    The web services are structured as follows:Web Service 1 (Artist) has attributes of Artist Name and Date of Birth.Web Service 2 (CD) has attributes of CD Title and Release Date. Underneath each CD are songs, each of which have a Song Title and Artist Name.
    I have defined both web services and defined a link between Artist.Artist Name and CD/Song.Artist Name. I am able to run a report with Song Title and Date of Birth that crosses web services. I am able to run another report with Song Title and CD Title that crosses the different levels in the second web service. However, if I add CD Title to the first report or Date of Birth to the second (both of which effectively force CR to employ the link between the two web services AND the CD/Song hierarchical structure in the second web service, I get the aforementioned error.
    Any assistance understanding how multiple web services can be linked in this manner would be greatly appreciated.
    Thanks in advance.

    Post Author: Mike Wright
    CA Forum: Data Connectivity and SQL
    Not sure about your exact situation, but having similar problem with another application and have tracked down to security. Added user to group Domain Admin and it works fine. It appears to be accessing a subdirectory which it does not have permission to use and then times out and returns the "invalid....". Seems that once the query just over a certain size (and I'm not sure what triggers this) it needs to make use of temparory file disk, intead of ram.
    I'm still trying to track down which temporary it's trying to uses - so if you have any ques.
    cheers

  • Failed to Retrieve Data from the database.

    getting the following error message stating that
    Failed to retrieve data from the database.
    Details:4200:[Microsoft][ODBC SQL server Driver][SQL server] Incorrect syntax near 'Category ID', [Database Vendor Code: 102],
    i am not sure why I am getting above error message when running the report.
    I have a view linked to table. The Category ID is in View that I have created.
    need your help if you know what steps I should take to reslove the issue, thanks!
    mansoor

    Hi,
    Are all your data in the View or each time you run a query it update the View? Please try to update your View then run the Report again, much better if you delete the original View and replace with a new one,
    Regards,
    CLint

Maybe you are looking for

  • How to convert Oracle function in UDB

    Hi , i am writing this function in oracle.Could you please convert this function in UDB because i am new in this and dont know how to use decode function in UDB Please following is the code for oracle. CREATE OR REPLACE function fun ( localex varchar

  • Problem install any O/S

    Hi there I'm a beginner in computerbuilding so don't laugh now. Everytime I try to install XP Pro, Win 2000 or Win 98 my computer will hang at different places. It's not at the same place every time. Every part in the computer is new. I haven't flash

  • Problem with JAXB Unmarshall - javax.xml.bind.UnmarshalException

    Hi, I'm getting an expection while unmarshalling using JAXB. The error is as follows : DefaultValidationEventHandler: [ERROR]: unexpected element (uri:"http://www.etrade.com/ee/systemdomainao/search", local:"Context_Id"). Expected elements are <{}con

  • NullPointer Exception in WLS SP2

    Hi, I get a null pointer exception while deploying an application (.ear) in WLS 7.0 SP2. The same app deployed fine in WLS 7.0 SP1. It seems to fails in weblogic.management.runtime.DeployerRuntimeMBean.activate(realPath, name, null, info, null); Has

  • AC 5.3 CUP - combining digital signture in CUP WF process

    Dear All, We have a customer who wants to use digital signature in the WF approval process in the CUP. Does anyone know if this can be done ? Thanks Yudit