|
What is the problem with OWC10 ExportPicture method?
I am using OWC10 on a Windows 2000 Server with IIS 5 to generate charts using the (ExportPicture method) for display on a website. Most of the time, everything works as expected.
Sometimes however, the charts do not display correctly. Sometimes the labels are missing and sometimes there is nothing but a white background with a one-pixel black border around it. The image is the correct size and on the times when only the labels are missing, the chart is in the correct position, as though the labels were present.
It only seems to happen when the server is logged off. As soon as someone logs in, the problem goes away and the charts start appearing correctly. Of course, having just said that, it now isn't working when I am logged in!
Here are some examples: The Good[^], the bad[^] and the ugly[^].
I sent a copy of the source code to Microsoft and they examined it and agreed that I was doing everything correctly. The only advice they could give was to buy a new video card, because apparently 8mb video memory and 512 mb RAM on a server isn't enough to generate a 10k GIF image. Ridiculous! Anyway, I bought a new 32mb video card and of course it still doesn't work.
After this sugestion failed, they refunded my $250 support charge and admitted they were clueless.
This has been an intermittent problem for over 18 months now and still it is not fixed. During that time, I have installed a new server and upgraded from OWC9 to OWC XP, with still the same results.
Things I have tried:
- Setting priveleges on all Office folders to Everyone/Full control.
- Changing the IIS Application Protection from Low/Medium/High
- Installing a new 32mb video card (Microsofts laughable suggestion)
- Installing the latest version of DirectX (Microsoft Suggestion)
- Upgrading all the drivers that I can lay my hands on
- Installing the entire website on a different machine
- Using GetPicture instead of ExportPicture
- Leaving the server logged in with administrator priveleges. (NOT a good idea!)
- Reboot the server whenever the images start to show up incorrectly. Now, while this (mostly) works for a short time it's not a useful solution...
Things I have not tried:
- Purchasing a piece of software that actually works and then re-writing the relevant parts of the web-site.
If anyone has ANY idea what is wrong with this component or my setup or whatever, please let me know!
Thanks.
|
|
|
|
|
With a lot of testing of my client program I eventually get an unhandled soap exception. When I debug the app, the gist of the message is that a timeout occurred on establishing a session with the service and that possibly the max number of channels have been reached. If I go to the server and restart IIS, every starts to function again. I suspect that there is some method I need to invoke when my client application closes so that the object that was instantiated when it started is properly destroyed. The ctor of my mainform class instantiates the proxy class for the web service, and it is assigned to a member variable to be used in other methods of the form. I'm concerned that I need to call a dtor or some other method in order to ensure that everything gets cleaned up correctly. Thanks for any ideas.
Chris Meech
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler
|
|
|
|
|
It doesn't seem like a client side problem, probably the server is the one to blame.
Check lack of what resources causing it (too many open sockets, database connectens etc.).
Edward
|
|
|
|
|
Hi
i have a login script, but after the user has logged out, i want to disable the back button. how is this done, and is it a proper controlling method?
tx
|
|
|
|
|
To my knowledge there is no way to disable the the back button on the clients browser. If you are using a session to monitor the login status then you should remove it after logout and check it on all pages.
|
|
|
|
|
Brakanjan wrote:
i want to disable the back button
I guess you dont want to allow the user to come back & access the page after he logged out, by clicking the 'back' button. There may be javascript(s) to disable the 'back' button...
But the right way to do your job is to control the page access with the session/cookies that are set in the 'login' process. So... they become invalid when the user presses the 'back' button, and the user would be redirected to the custom wrror page!!!
I was born intelligent Education ruined me!.
|
|
|
|
|
|
Use the image button to control this problem.
Check the userID value is true then show the back button image else switched off. If you taking about the IE back button its not possible. Only way you can check some authentication in your beging of your script to display your page contect.
----------------------------
while 1
yours friendly
|
|
|
|
|
We're creating a form. There's four checkboxes for four locations. Once sixteen people fill up one location, we would like to disable that checkbox. Do we need some sort of counter? Is there a way to keep track of it in JavaScript?
|
|
|
|
|
You need to store this somewhere... e.g. a database or a file...
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
You could store the value of the counter in the Application object (assuming you are using ASP)
for instance:
Application("MyCounter") = Clng("0" & Application("MyCounter"))
Christian Calderon
|
|
|
|
|
This would reset every time the application shuts down though...
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
Over the last few years I have been writing MFC dialog based application for the Windows environment using Visual Studio .Net (C++).
Now is it possible to use Web Browsers to generate the GUI and let the core of the application be written in Managed C++.
The core application involves serial communications and managing a Database. The GUI just needs to provide Start/Stop display and monitor parameters of the core application.
Note I know nothing about Web Browsers or their development, other than using IE for Internet access.
So any useful site would be great - useful words too!
The main reason for this move away from MCF is to allow (so I am told) the users to define there own GUI - as they can design there own Web Pages - I assume this is correct!
|
|
|
|
|
This is completely feasible and widely used. For one look at the latest Netcrape, the GUI is an html page basically(they use XUL). Also apps like Microsoft Money are just webpages in a framework. IE is more of an application platform than simply a webbrowser.
|
|
|
|
|
Thanks for your comments.
Just one additional question, who/were would you start with this technology; i.e. do you need a Toolset for development?
|
|
|
|
|
Hi everyone!
Does anybody know what will happen if I do Response.Redirect from an ASP page (having ASP session) to an ASPX page that will perform some stuff and then Response.Redirect to another ASP page. Will my ASP session be lost?
Note that I don't need to pass values between these sessions - I can pass what I need using Request.
Thanx in advance.
Regards,
Serge (Logic Software)
|
|
|
|
|
I haven't tried this but I would expect the session to be lost since they are handled by seperate processes.
|
|
|
|
|
You would like to launch an ASP page from an ASPX page?
This ASP page what will it change?
Why cant it be done with the ASPX page?
More info please
William O'Malley
|
|
|
|
|
You see, we already have an elaborate system written in ASP, and now we need to expand its functionality beyound the level that can be achieved with pure ASP, e.g. on one page it sends an e-mail to a user, and this operation takes about 1 minute.
We decided that sending a message in a different thread is the solution we need.
Firstly we tried to create a .NET component that will handle this task, and to call it via COM, we followed the steps described in MSDN to use COM wrappers, but failed. Being pressed for time we had invent another solution, and the obvious thing that came to mind was to redirect from the ASP page to an ASPX page that will facilitate e-mail send, and bring control to another ASP page that is in the chain.
Now we have the following problem: control passes from ASP to ASPX, and there it stops. We used Response.Redirect in ASPX page, but it seems that it kills all threads that start in it, and Server.Transfer doesn't work as well. In the HTML output of the ASPX page we notice that it doesn't contain any HTML output that should be there.
Could you suggest something?
Regards,
Serge (Logic Software)
|
|
|
|
|
ummmmm optimize ur email sending code?
a minute to send an email is somewhat ridiculous no?
"there is no spoon" biz stuff about me
|
|
|
|
|
l a u r e n wrote:
a minute to send an email is somewhat ridiculous no?
the email code has already been optimized anyway, we solved it - ASP session IS preserved when sending control to an ASPX page, and then back to another ASP page. Email is sent in a new thread.
Regards,
Serge (Logic Software)
|
|
|
|
|
subj. I've made a project that can load html page into webbrowser via document.innerhtml, but this doesn't solve a problem of loading .mhtml file into Webbrowser. I think that IPersistStreamInit.Load could help me , but all my attempts to make a working code on .NET were unsuccessful Maybe someone could share a small similar project with me? VB.NET, C# are welcome...
Thank you in advance,
Dmitry Blokhin
|
|
|
|
|
How do i do character casing for a textbox in asp.net.
I dont find any property for this.
Please let me know abt this
Praveen Chintamani
|
|
|
|
|
Hi, praveenc80
You can define your own CSS class in your stylesheet and add it to the CssClass property or you can apply the style attribute, ie.:
TextBox1.Attributes.Add("style","text-transform: uppercase;");
TextBox1.Attributes.Add("style","text-transform: lowercase;");
TextBox1.Attributes.Add("style","text-transform: capitalize;");
TextBox1.Attributes.Add("style","font-variant: small-caps;
Even better you can subclass TextBox and implement ie. a casing property.
Have a nice day!
Andreas W. H. Kongelstad
System developer
www.portalcontext.com
|
|
|
|
|
Hey its not working for me.
I have added attributes of the one which you have given..
Even i shoild write something in .aspx page
|
|
|
|