Getting Multiple SQL Reports With HttpWebRequest - 401 Unauthorized
Aug 22, 2011
I am trying to call multiple SQL Reporting Services Reports, get the .pdfs back, then append them together. I have no problems appending .pdfs, but I'm getting an error on the second report. Here's some example code:
[Code]...
View 1 Replies
ADVERTISEMENT
Apr 30, 2012
I'm trying to screenscrape a website that requires a POST login authentication. I can authenticate fine on my first request, but when I attempt to turn back around and hit the next page, I get a redirect back to the login page (basically it's saying I'm not logged in).
[Code]...
I notice two things... first, the ORA_WX_SESSION has its quotes stripped from it (even if I attempt to force them back in between response and request). Also the XYZCustomerServiceUserName and XYZ values are stripped. Other than that, the session information is identical between the two connection attempts.
View 1 Replies
Mar 28, 2012
I'm having problems sending multiple files via HttpWebRequest. I tried various ways on the basis of the code below, but always manage to send only 1 file at a time.[code]...
View 1 Replies
Jul 3, 2010
I have a web form on a web page like this:
<form
method="post"
action="http://poston.domain.com/"
[code]....
View 2 Replies
Dec 28, 2011
What I would like to know is how to obtain form input elements during an httpwebrequest?
[Code]...
Is it possible to obtain these input elements during an httpwebrequest without having to view the html code?
View 1 Replies
Mar 2, 2011
I tried myself a little with VS Report Designer and it all went well apart that I'm having trouble to display 2 reports in one Report Viewer (Not two reports in the same time :P).Here a little info on what I'm using I'm using two dataset witch i feel with information through my functions.Until know if i select the report manual on the control properties it works well but only that single one.[code]but i doesn't work for me uuu one think you also should know is that I also use Parameters with i pass to the report, which works great on an single report.
View 2 Replies
Jun 21, 2010
How can i create crystal report from multiple tables that are related.? I need to create a report based on the value provided through selectionformula in visual studio 2005.
Tables are :-
1. Vendor
vendor.id
vendor.name
[Code].....
View 1 Replies
Aug 31, 2009
I want to export 2 different reports when I click an Export button. The problem is the routine only fires once and I only get one report to print out. Am I doing something wrong? I think it has something to do with the HTTPResponse, but I'm not sure.
Here's my code:
Dim badgeSize As Integer = 0 'Drop Down selection
Dim badgeData As New DataSet 'Visitor Badge Data
Dim badgeEmployeeData As New DataSet 'Employee Badge Data
[Code]....
View 1 Replies
Sep 29, 2011
Within vb.net we've got a report that works great it has it's header/footer details then then a table in the middle which repeats data and all of that is fine.
But what the client wants now is for another button named 'Print Individual' and this will print the same report but instead of the repeated data within the table for each of those rows to be a single row on a page with the same header/footer.
So for example on the first report if there is one page with 5 rows of details the 'Print Individual' report will print the same but have 5 pages and 1 row per report.
Obviously if I can do it where we use the same report instead of maintaing two reports would be good, as the report has a lot of information on it.
View 1 Replies
Feb 15, 2012
I am trying create a multiple reports using a single report viewer. can this be done, if yes can u give me a clue on hw to go on about it. i have done everything its just the part of having multiple reports
View 11 Replies
Jan 6, 2009
I have 2 or more reports and I want to be able to open them in a single report. Let's call it the master report. In this report I want to open several reports, that are independent one to another. I'm using this code to generate the raports:
Dim crDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim cmd As New OleDb.OleDbCommand
Dim da As New OleDb.OleDbDataAdapter
Dim dt As New DataTable
[code]....
With this code I rewrite the datasource of the raport, and I can filter the query by the 'param' variable in the query.After setting the datasource of the report i can save the raport:
crDocument.ExportToDisk(CrystalDecisions.[Shared].ExportFormatType.RichText, "C: emp.rtf")
into rtf, pdf, etc. I want to append more of these reports into a master empty report. Or load these reports as subreports into a master empty report.
View 5 Replies
Aug 10, 2010
I am using this code to pass multiple parameters but it works for only one parameter what should i do please please help me.
If TextBox1.Text = "" Or TextBox2.Text = "" Then
MessageBox.Show("Please enter Date!", "ALI ENTERPRISES", MessageBoxButtons.OK, MessageBoxIcon.Information)
Exit Sub
[code]....
View 2 Replies
Sep 29, 2011
Within vb.net is there a way I can dynamically create multiple reports using the same rdlc but with different SQL statements.So in essence I want to write a loop that will open the same report multiple times within the viewer which will end up having many pages..
View 1 Replies
Jun 7, 2010
i want to know is it possible to bind my all crystal reports to a single reportviewer, somewhat in tabbed view or treevie. If tabbed then visible through navigation button.
View 2 Replies
Dec 13, 2011
I have to prepare about 125 or 150 Loading Slips for various Mines to move carting to our various Factory daily into Windows Form of ERP System.
Just like here: Date:18-12-2011, Requirement No.001/11-12, Mines No.OP-128, In Charge Name: Karsanji Plot=0,Satta=0,Dump=6, Transporter:Ghanshyam Roadlines Destination:Madhapar Here Some Button to generate/modify records: Add,Edit,Save,Delete,Previous,Next,etc If I distribute 15 trucks for Ghanshyam Roadlines to move carting from OP-128 to Madhapar then I will have to entry 15 times into Windows Form of ERP System for creation loading slips numbers from 1 to 15. Here all my data to input 15 times into ERP is same, so why is it not possible to create multiple reports with single entry form?
View 2 Replies
Aug 26, 2011
I am creating reports in Crystal Reports that is integrated within Visual Studio 2008, and I noticed that some of the features are disabled. One is the ability to link tables with a Right Outer Join or Full Outer Join. I also cannot "Show SQL Query" in Crystal Reports. Is this something I can enable or do I have to purchase or upgrade?
View 1 Replies
Dec 9, 2010
Basically, I am looking for a method on how to preview reports from a datagrid or it can be from the access database which populates the data to the datagrid (then displays this in the datagridview) in vb.net vs 2010.I believe there are two methods using the ReportViewer or using Crystal Reports, but so far, I have no idea how to get them to work. The first idea would be favourable - using the data from a datagridview (which may of already been sorted, filter etc) and be able to produce a report on that.
View 1 Replies
Mar 26, 2012
I'm attempting to login to a cPanel using a POST Request in VB.Net. I have the correct credentials when logging in and when posting I still get an 'Unauthorized (401)' response when it should be '301' (analysed using Tamper Data Firefox Add-On). Below is my post request information and function.[code...]
View 1 Replies
Apr 17, 2011
I had an exercise where I was supposed to have a button open an openfile dialog box, let the user select a file, then another button that would save the file with the extension ".bak". The author didn't give any clues about manipulating extensions -- but a few chapters back we covered string functions. So, with that in mind, I did the following...
Private Sub btnSaveFile_Click(sender As System.Object, e As System.EventArgs) Handles btnSaveFile.Click
' Where does the extension start
[code].....
View 7 Replies
Apr 28, 2011
i am developing an application in vb.net having crystal reportsi have stored all my reports in a folder called report in my applicationbut initally when i executed i got a error msg like the report doesnot exixts in debug folderso i copied all the reports from report folder to debug folder & its workingany changes that i mke in report folder needs to be copied into the debug folder alsois it possible that the reports be executed from reports folder only & not from debug folder as everytime i need to make changes in the debug folderhow can i chnage the path to reports folder
View 1 Replies
Nov 2, 2008
im working on a disk cleaner in VB.net 2008. im running into a unauthorized file exception.
[Code]...
View 5 Replies
Jan 10, 2010
Ive created a simple application that works fine when i debug and test it though visual studio but when i deploy the application, download it and install it onto my machine i get an error.basically when the first form loads it checks for a file called "New Folder" in my program files folder on my machine if the file is not there, then it adds the file. the code im using to do this is:
If System.IO.Directory.Exists(My.Computer.FileSystem.SpecialDirectories.ProgramFiles & "New Folder") Then
Exit Sub()
[code]....
View 4 Replies
Jun 29, 2011
I have an application where the admin user can create users and upload documents to the server for the created user to download.
When uploading a file it creates a folder using the userid as the folder name and saves in that folder within a folder called documents e.g. ~documents/77b29079-43d6-4520-bc34-77ae2af1b131/documentname.xls
The client then has to login and will see a list of available documents for that user only. The only problem is that if someone was to get hold of one of the urls to a document is can be downloaded without having to login.
Is there something I can do to stop access to these files?? I have tried editing the web.config file to only allow access to certain roles but i could still download a document without logging in.
<location path="documents">
<system.web>
<authorization>
[Code]....
View 1 Replies
Oct 16, 2010
net ,vb. I want to deny users who have not logged in with a message" you have to login to access this page".
View 1 Replies
Oct 30, 2010
I am just writing a simple file browser. It works without problems when I point to a specific directory but throws "UnauthorizedAccessException access to the path .... is denied" when I point to drive "C:\" or "D:\".
If Not txtToSearch.Text = Nothing Then
ListBox1.Items.Clear()
FC = 0
For Each foundfile As String In My.Computer.FileSystem.GetFiles("D:\", FileIO.SearchOption.SearchAllSubDirectories, Nothing)
Dim title As String = My.Computer.FileSystem.GetFileInfo(foundfile).Name
If title.Contains(txtToSearch.Text) Then
ListBox1.Items.Add(title)
FC += 1
End If
Next
View 1 Replies
Jan 17, 2011
I am trying to get a list of files using this line of Dim files() As String = IO.Directory.GetFiles("D:", "*.*", SearchOption.AllDirectories)But it errors out on folders that are inaccessible, like the RecycleBin folder & the program stops. So how do I get a list of files in all folders, while skipping the inaccessible one
View 1 Replies
Jun 15, 2010
I've got a vb (desktop) app (not a web app) that needs to connect to my website, I've been told that embedding my MySQL database credentials is a big mistake for several reasons.So, I've built a web script in PHP that runs on my server called web-service.php, it's located at www.example.com/web-service.php.Now, I'm trying to connect with this code:
Code:
Dim hwrRequest As HttpWebRequest = HttpWebRequest.Create("http://www.example.com/web-service.php")
hwrRequest.Method = "POST"
Using swWriter As New StreamWriter(hwrRequest.GetRequestStream) 'POST the info
[code]....
And when I do, I get the error "The remote server returned an error: {401} Unauthorised.", but I shouldn't need any credentials to access this. I'm just trying to POST a username and password to that page and have it query the database and then get the returned content, I'd prefer to use POST than GET so you can't see the user/pass in the URL (if possible).
EDIT: I used CPanel to password protect my website so it can't be accessed, after supplying my user & pass to access it, everything works.
View 1 Replies
Mar 19, 2010
I have my own login page.If any user access any page directly(without login),i want to redirect unauthorized user to login page. Using Generic Handler is there any chance?
View 2 Replies
Jan 16, 2012
below is my code for posting a value in php code and get response...but I am have an error The remote server returned an error: (401) Unauthorized
ddd
Try
Dim post As String
[code]....
View 3 Replies
May 18, 2010
If any directory within a set being searched by the [URL] or [URL] methods contains a junction point, the entire method fails and returns zero results on my tests under VB 2008. I would like to make the call more robust: to return the folders or files not blocked by access restrictions and to note the folders which were blocked. Do those methods offer a means to do this, or is a recursive folder-by-folder call necessary?
View 3 Replies