|
I've been going round in circles all day with this.
I'm using a 3rd party library that generates some data and sends it to the http response.
The method signature is
<br />
void ALibrary.WriteTo(HttpResponse Response)<br />
and I would use it like:
<br />
ALibrary myLibraryInstance = new ALibrary();<br />
...
myLibraryInstance.WriteTo(Page.Response);<br />
and it replaces the standard html with its custom response data.
This is great when I want to output the result to a file for download (e.g. PDF, DOC, XLS), but I also want to capture that file to stick it into a blob field in a database.
How do I create a dummy response object and capture the data to a byte array rather than returning it to the browser?
Thanks in advance.
ChrisB
|
|
|
|
|
One of our clients wishes to view company MS Excel reports through their corporate intranet so to accomodate this, I'm referencing the "Microsoft Office 11 Object Library" DLL in vs2005. Through this DLL, I can create any ms excel report I wish. One of my co-workers however, strongly believes generating ms excel reports by using a copy of ms office on the server is a bad idea, however, up to this point, I've been unable to find any bugs in my sample application.
So my question is, are there any serious downsides to generating ms excel reports on the web this way?
The only problem I've come up with so far is the fact that ms office is not a multi-threaded application. Meaning I had to setup some code so that if one user is currently generating a report, a 2nd user cannot begin their report generation until the 1st user is finished.
Other than that though, I haven't had any problems however this is going to be a very involved application (they use 57 different excel reports) so I don't want to spend the next month developing an app using this process only to find out it was the wrong approach to take.
Thanks.
-Goalie35
|
|
|
|
|
|
Thanks for the link indianet. After reading that article, I'll definately be avoiding server-side excel automation.
Can anyone then recomend an alternative to this problem? Creating a CSV file isn't really an option because the reports this company uses contain tabs, background colors, a few pivottables, and an image or two. Our current backup plan is to use Crystal reports which can be exported in xls format however there are a ton of headaches associated with this approach also such as the ability to properly align all of the cells and how to create tabs.
Thanks again.
-Goalie35
|
|
|
|
|
Hi
I have a problem in Event handling, I have two eventhandlers attached with single button. According to checkbox condition i should switch over these event handlers. How can i do it? Please help me.
Raghavendra
|
|
|
|
|
RaghavendraB wrote: I have two eventhandlers attached with single button
What do you mean by this?
Is this waht you want to do?
Button_ClickHandler()
{
if(Checkbox.checked)
Foo();
else
Bar();
}
only two letters away from being an asset
|
|
|
|
|
hii all,
i have check boxes as template colums in data grid, in same form i have two other grid, which is require same functionalty..
i have some code from this site, to check and unchek all the check boxes in grid of header check box , but the porblem is it is checking all the checkboxes of all the grids on the page..
how to apply this to particular grid..
function SelectAllCheckboxes(spanChk){ debugger
// Added as ASPX uses SPAN for checkbox
var xState=spanChk.checked;
var theBox=spanChk;
elm=theBox.form.elements;
for(i=0;i
|
|
|
|
|
hi
u refer this code
function SelectAllCheckboxes(spanChk){
// Added as ASPX uses SPAN for checkbox
var oItem = spanChk.children;
var theBox=(spanChk.type=="checkbox")?spanChk:spanChk.children.item[0];
xState=theBox.checked;
elm=theBox.form.elements;
for(i=0;i
|
|
|
|
|
hii.. i will check with that
thanks for ur help
|
|
|
|
|
Hi,
We are building a webapplication in Asp.net 2.0. We want to make sure that only one instance of application running on Client.
In our current system when an user is logged in . He can open a new window and able to login with other user( or as same user).i want to redirect the user to home page if an user is already logged in.
Simmly one seesion should be allowed for a client machine at a time.
How can we implement this.
|
|
|
|
|
I don't think you can. Why must you have only one instance running on a client? I'm not even sure how to do that in a windows app let alone a web app. You could only allow one session per log in, but what would you do when the user closes a browser but the session is not expired?
|
|
|
|
|
Hi,
Thanks for your reply
Say if the user request the page we need to hook him to the current session if its still active. i am not sure its possible or not.
|
|
|
|
|
hi,
refer this article
http://www.dotnetspider.com/kb/Article2602.aspx
here you will find two ways of solving your problem....you can implement whichever you find simple.
regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|
|
Hi,
On Building .NET 2.0 Applications which one is more appropriate Typed DataSet or Custom Bussiness Entities.
Which one is good for an application that can be easily adaptive with changes and able to handle complex business rules.
|
|
|
|
|
|
Hi.
Did anyone have experience with DB2 databse. I need to connect to DB2 from my ASP.NET (VB) application and I'm not sure how to do that. I have dvelopment machine (I work on it) and DB2 is installed on another machine.
Thanks,
|
|
|
|
|
Have you checked the DB2 Provider?
|
|
|
|
|
I'm not exactly sure what to do. Is this something that should be added to VS?
I saw provider for connections but couldn't find anything for DB2.
Thanks,
|
|
|
|
|
This may help:
http://www.codeproject.com/dotnet/DotnetDb2.asp
|
|
|
|
|
Thanks. I've seen this one. I just don't understand where I can find the driver.
On top of everything this is for V.8 and we have V.7 somthing of DB2.
|
|
|
|
|
hi
how can i get the ClientId of a control in a gridview footer row from javascript.
the code that i am currently using is like this:
document.getElementById('<%= TextBox1.ClientID %>').value = result[0];
but as textbox1 is not declared in a gridview that above code does not work in a gridview.
thanks for any help
|
|
|
|
|
How i can update following settings at runtime in web.config file using asp.net 2.0
appSettings
add key="ConnectionString" value="server=Release; user id=sa; password=abcdef; database=Superlative; pooling=false;
appSettings
Know Yourself Then Grow Yourself.
|
|
|
|
|
This may help:
http://www.codeproject.com/csharp/readwritexmlini.asp
|
|
|
|
|
..but bear in mind that, as it says in that article:
"...writing to web.config causes the application to end along with all the active Sessions."
cheers
Fred
|
|
|
|
|
Thanks
Know Yourself Then Grow Yourself.
|
|
|
|