|
VS2003:Dim myReport as new CrystalReport1
VS2005:Dim myReport as new reportdocument
myreport.Load(Server.MapPath("CrystalReport1.rpt"))
VS2005 has excel export and word export etc.
|
|
|
|
|
Hi Daisy,
Thanks for the reply. Yes your code helped me to move further and I don't see any compile time errors. But at the line
'myReport.Load()
myReport.Load(Server.MapPath("ParishPartIEarlyChildhoodGrade8Report.rpt"))
I am getting an "access denied" exception ... here is the error I am getting
************************************************************************************
?ex
{"Load report failed."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: Nothing
InnerException: {"Access is denied.
"}
Message: "Load report failed."
Source: "CrystalDecisions.CrystalReports.Engine"
StackTrace: " at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at AODOnline.ParishForms301.ParishPartIEarlyChildhoodGrade8Export.ExportReport() in D:\AODSetup\ParishForms301\ParishPartIEarlyChildhoodGrade8Export.aspx.vb:line 147"
TargetSite: {System.Reflection.RuntimeMethodInfo}
************************************************************************************
I also did run CRRedist2005_x86.msi from the location "D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports" . I am not sure I should run it on my development box but I did still I get the same access denied exception.
Any inputs on this?
Thanks,
-L
|
|
|
|
|
|
by right clicking the login control we can select smart tag . In that we can apply security settings On different users and also on folders. Can we also do that programmatically without using that wizard.
thanks in advance.
|
|
|
|
|
By programatically do you mean at runtime? You can make the settings manually in the web.config, which is how the Website Configuration utility works.
only two letters away from being an asset
|
|
|
|
|
can you please send me the codings. We dont want to do it manually but want the admin to do it through a form .
|
|
|
|
|
Hi All,
I have a search technique in my page. I use asp.net with vb.net and use access database. My following query does not pack record.
Select cust_order_ship.VAT, cust_order_ship.TAX from cust_order_ship, cust_order where cust_order_ship.order_id = cust_order.order_id and cust_order.order_date >=#11/05/2007# and cust_order.order_date <=#13/05/2007#
while record exist on Date 12/05/2007.
When I give Date start and end date 12/05/07, then it does work.
What can be the problem .
Can any one help me
Thanks in Advance.
|
|
|
|
|
This is just a guess, but I think a end date of 13/05/2007 is not valid.
I would try 12/05/2007
Ben
|
|
|
|
|
Hi
I'm using the following code to try and retrieve the current value of a database field to set that as the initial value of a dropdownlist in an editable datagrid.
Function GetSelectedIndex(StatusID As String) As Integer
'Loop through the DataSet DS
Dim iLoop As Integer
Dim DT As DataTable = DS.Tables("Statusds")
For iLoop = 0 To DT.Rows.Count - 1
If Int32.Parse(StatusID) = Int32.Parse(DT.Rows(iLoop)("StatusID")) Then
Return iLoop
End If
Next iLoop
End Function
I get the following error - 'IndexOutOfRangeException: StatusID'
when I remove the selectedindex function call I can use the list to update the database so seems to be a problem with my coding to retrieve the current value.
The table I'm using has StatusID as the primary key field and 'Status' as the field I'm using for the ddl.
any help would be much appreciated!
Thanks
Rob
|
|
|
|
|
I would guess you are trying to set the SelectedIndex before the dropdown is loaded. You would need to bind the dropdown first and then try to set the SelectedIndex.
Hope that helps.
Ben
|
|
|
|
|
Hi,
I am calling the getselectedindex function after I've populated the dropdown. Not sure where I could be going wrong here!
Rob
|
|
|
|
|
Well, if you debug into the code and can see what the Getselectedindex is returning, you should be able to look at the items in the drop down and tell if that index exists. I am guessing that somehow the dropdown still isn't bound so the items don't exist yet.
Ben
|
|
|
|
|
Hi,
You have declared iloop as Integer. In dot net if we do not initialize the intiger it will take it as -1 as the initial value. So assign it 0 or 1 as
Dim iLoop As Integer = 0
This should work.....
Regards,
Kaps
|
|
|
|
|
Thanks kaps,
Was another small problem I needed to sort but your suggestion got me past the initial error so I've got it all working now!
Much appreciated!
Rob
|
|
|
|
|
Hi All,
I have a web application that generates crystal reports. Version used is 9.2.3.97. If the end users windows is XP i can export these reports to (pdf, excell, word...) else if windows 2003 i got an error saying:"Error in File C:\WINDOWS\TEMP\temp_37248246935.rpt Failed to load report".
Solutions tried so far:
1.What windows are you using? What service pack?
Windows Server 2003 – SP1
2.What upgrades/updates/installations have you conducted lately?
Installed the CR9.2 Redistributable package.
3.Have you conducted any changes on the level of admin group?
No (Added the IUSR_ and IWAM_ users to the admin group… didn’t work.. so I removed them.)
4.Where are you noticing this error, online or offline? If online, is it working offline?
I only load the report within an ASPX page. Can’t test them offline since the data comes from a dataset at runtime.
5.Do you have Crystal reports installed on your machine? If yes, which version?
Yes, Crystal reports 9.2.3.97
6.Was the Crystal reports generating PDF files before? then it suddenly stopped.
No
7.Are you being able to convert the report to any other type other than PDF?
No (tried Excel and Word)
8.Where are you saving the report used in the aspx page?
Not saving it, Using the Response.Write to render it into the page directly. The temporary files are handled by CR. (I believe stored on C:\Windows\Temp)
9.Have you tried to install any hot fixes for Crystal Reports and .NET?
Yes… Installed the Service Pack 3 for Crystal Reports 9.
NB: We only get the problem on Windows Server 2003… the configuration works fine on XP and WS 2000.
|
|
|
|
|
I have a requirement to show two instances of the same wizard on 1 page.
The problem I am having is that when I hit the next button on one wizard it validates the step it relates to but then also validates the steps on the other wizard.
One way I thought of to solve this problem is by assigning the controls on each step to their own uniquely numbered validation group. And then wiring the next button on each step to the same validation group.
Is this the best approach ?
|
|
|
|
|
As per our requirement i have created a word report with password.
And i am exporting it to the client system.
It works fine in some system. But in some client system the gif images are not correctly loaded.
For all the clients the images are correctly generated at the server(i commented the code of deleting the file at the server).
And it also happened that for some clients where the images were not correctly loaded it began to load when tried another day. And vice versa also happened yet another day. I really don't know why this inconsistancy is happening.
And i was checking out at the clients were Word 2000 was installed. As i was automating Word 2000(Word 9.0.2720) at the server.
Actually while creating the document at the server i am inserting a table containing those gif images, with some formatted headings in it...
And that table is made as a header for the word document...
I just copied the file from the client system where the image is not correctly loaded to the client system where the image is correctly loaded.
Found out that it is correctly loaded.
Again i opened the file through the network from the system where the images are correctly loaded. It was alright. And everything is displayed correctly.
Now feel that it is due to some client side settings at the desktop.
In Word 9.0 what are the sttings to be enforced to load images ?
If any body could tell me that i would be grateful....
And is there any way to enforce that settings while exporting the file to the client... Doubtful of that, as we will have to
change settings of the Word Application at client...but still...
|
|
|
|
|
Hi,
I am working on Repeater control in Asp.net 2.0 which has image button within it.
I want to fire image button click event to display the image in a large view.
Can anyone help me
Best Regards,
|
|
|
|
|
Did you store thmbnailed image and larger image differently? if so, just show the larger one...
<< >>
|
|
|
|
|
Hi there;
there is no probs in display of image in large view.
I also used the same earlier.
what i had done is use href where the image is going to display on your render control.
See the code below which i used dynamically, just look it
img = new HtmlImage();
an = new HtmlAnchor();
an.HRef = "Images/" + arr[count];
img.Height = 120;
img.Width = 100;
img.Alt = arr[count];
an.Title = arr[count];
img.Src = "Images/" + arr[count];
}
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
hello forum;
I have a problem on implementing the paging using data list.
I am using datalist to show images with paging concept.
I already implemented the paging concept for the Imagebutton i use as fist,next previous,last sections.
But problem is that i have same buttons at bottom of page, when i make click to them the functions associated to their click events is not responding.
so plz help me in same
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Cannot know exactly what cause without the code...but just to make sure...do you event handler for those buttons?
<< >>
|
|
|
|
|
Ya every thing i had checked with the code, even if i m adding new control and get called its click event than also its not responding.
Should i give u my code.
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
that's weird problem...are you sure that there is a line of code which is something like
this.btnReturn.Click += new System.Web.UI.ImageClickEventHandler<br />
(this.btnReturn_Click); ??
<< >>
|
|
|
|
|
Hi, i currently using ASP.NET 2.0 with MS Access, i want to use the cookie but have problem with it.
When the user check to remember i want to set cookie
Response.Cookie("username")=txtUser.Text
Response.Cookie("password")=txtpwd.Text
but it not work, please help me?
Thanks
................
|
|
|
|