473,606 Members | 2,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automating Reports download on Oracle Sieble CRM OnDemand

3 New Member
We need to automate download of Reports from Oracle CRM OnDemand. The reports in Siebel CRM OnDemand can be downloaded in the form of Excel, CSV, etc. We have a task of downloading several such reports in Excel format everyday. The requirement is to automate the download of Reports by providing the URL of Excel format of report, Username and Password to logon to Oracle OnDemand.
Using CSHttpUnit, we could logon to the OnDemand instance and navigate to the URL that will prompt for a file download (File Download dialog box to save Excel form of the report in the local drive). But I am not able to suppress the File Download dialog box and assign default path for saving the Excel format of the Report being downloaded. I would welcome your valuable advice / suggestions to use any other method / enhance / change the currently used method.

Expand|Select|Wrap|Line Numbers
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using CSHttpUnit;
  5.  
  6. namespace AutomateReportDownload
  7. {
  8.     class AutomateReport
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.  
  13.             CSWebConversation CW = new CSWebConversation();
  14.             CSWebResponse response = CW.GetResponse("https://mywebCRMwebsite.com/logon.asp");
  15.             CSWebForm form = response.GetFormByName("logonForm");
  16.             CSWebRequest request = form.GetRequest();
  17.             request.SetParameter("j_username", "authorizedusername");
  18.             request.SetParameter("j_password", "mypassword");
  19.             response = CW.GetResponse(request);
  20.             string res = response.GetTitle();
  21.             if (res.Equals("Home"))
  22.             {
  23.                 CSWebResponse resp = CW.GetReportResponse("https://mywebCRMwebsite.com/OnDemand/user/analytics/saw.dll?Report&Format=mht&Extension=.xls");
  24.                 string strTitle = response.GetTitle();
  25.             }
  26.         }
  27.     }
  28. }
  29.  
Jul 25 '08 #1
2 2620
Curtis Rutland
3,256 Recognized Expert Specialist
Welcome to Bytes!

Please read our Posting Guidelines. Please do not attach your code as a text file. Just use the code tags (the # button in the text editor).

MODERATOR
Jul 28 '08 #2
nandishp
3 New Member
Thanks for the intimation.

Welcome to Bytes!

Please read our Posting Guidelines. Please do not attach your code as a text file. Just use the code tags (the # button in the text editor).

MODERATOR
Jul 28 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
15147
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports designer it shows up very fast. When the report is printed from my application it takes about ten times as long to get the report to appear. When printing straight from the Crystal Reports
0
2837
by: Rohit Dhawan | last post by:
I have Oracle 9.2 installed in my computer and want to use Oracle reports builder 6i. Is it possible to use both of them. When I tried to install Oracle report an Forms 6i the Oracel Installer reported the error " cannot intall oracle reports 'nt' on Oracle beta 82". 1)If i use Oracle 9.0.2 would I be able to use Oracle 6i. 2)If not which version of Oracle Database and Oracle Report builder
1
5900
by: rishka | last post by:
Rishka Mar 17, 5:40 am show options Newsgroups: comp.databases.oracle.tools From: "Rishka" <ris...@webmail.co.za> - Find messages by this author Date: 17 Mar 2005 05:40:45 -0800 Local: Thurs, Mar 17 2005 5:40 am Subject: Read Text file into Oracle Reports Reply | Reply to Author | Forward | Print | Individual Message | Show original | Remove | Report Abuse
7
2620
by: xzzy | last post by:
I need to automate a report in a different database (and thank yous to Terry Kreft for pointing me in the right direction). below is the code with the one line that does not work, marked: 'Does not Work' It appears that the type of object returned from the "AllReports" collection is not a report object. =>> I need it to be an object of type report.
2
7957
by: jmev7 | last post by:
Any way to avoid having to manually enter my user name & password for the Oracle login box? I normally run a query on an attached Oracle table and have to enter the un/pw before the query will run. There's no place to enter this information in. Later, if I run subsequent queries on the table in question, I don't need to enter un/pw again. I can leave my PC on 24x7, but that's not really a solution. I need to know if I can log in to the...
4
3220
by: Supa Hoopsa | last post by:
I am in the process of rewriting an MS Access application (access front end with SQL 2k database) in VB.NET and one of the things I would like to do is link in to the compiled Access ADE so that I can use the reports that have already been created. I have somewhere in the region of 200 reports already created in MS Access and I really don't want to have to create new ones. I have successfully linked to the Access ADP, but would really like to...
1
3935
by: John K. Humkey | last post by:
I'm at a loss (and, like a hard-core alcoholic) the "experts" I'm working with won't even acknowledge there is a problem. . . Is there any way to run "interactive transactions" at one priority and yet run long running reports at a lower priority. From a raw Unix/Linux/AIX standpoint, I understand and have used "nice" of course. The problem arises when the "interactive requests" coming from the front line users need priority, and the...
2
1349
by: Dave | last post by:
I have to download files every day from a web based application and it's getting very repetitious. I would like to find a way to automate the task. What I have to do each day is go to a website that starts with a login screen. After logging in, the web application takes me to a page with about 20 selection buttons. I have to start with the first selection. That takes me to another page. That page has a menu bar across the top. I have...
3
10791
by: greenMark | last post by:
Hi All... Do you know any link to download the Oracle reports6i ? I'm in a urgent situ.. Any help appriciated very much
0
8016
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8440
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8096
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6773
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5466
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3937
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2448
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1557
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1300
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.