User (Legacy) Posted March 23, 2004 Report Share Posted March 23, 2004 1) Is there any upper limit for specifying chartHeight. i fonud after 32,000 pixels, it gives an error message. Chart1.GetHtmlTag(chartWidth,chartHeight,chartMode) My question is what is the upper and lower (if applicable) limit of chart's Height and chart's Width. I could not see any reference of it in the documentation. I hit accidentally over 32000 as height and got that error. 2) I want to define the style of the title. title.Font = new Font("Arial", 11) I was told earlier that i need to add the Font constructor that takes 3 arguments. i do not see any reference of it in the documentation. So where/how do I put the third argument which is "style". I randomly tried the following fews: new Font("Arial", 11, "bold") new Font("Arial", 11, Style.Bold) new Font("Arial", "bold", 11) Unfortunately, it did not get to work. Thanks in advance, Alomgir Link to comment Share on other sites More sharing options...
Software FX Posted March 23, 2004 Report Share Posted March 23, 2004 1) I have to looked into this and it is a limitation of the .NET Framework. The particular line that fails is new Bitmap(width, height); If I do this line of code it does not crash but essentially ties up the web server to the point that the webserver itself locks up. Bitmap bitmap = new Bitmap(16000, 16000); So whatever the limit might be, a limitation of the .NET Framework, it would slow down your webserver with even one hit. 2) new Font("Arial", 11, FontStyle.Bold); Hope this helps! -cjs "Alomgir Monsur" <alomgir_monsur@albint.com> wrote in message news:D6JvxlQEEHA.196@webserver3.softwarefx.com... > 1) Is there any upper limit for specifying chartHeight. i fonud after 32,000 > pixels, it gives an error message. > Chart1.GetHtmlTag(chartWidth,chartHeight,chartMode) > > My question is what is the upper and lower (if applicable) limit of chart's > Height and chart's Width. I could not see any reference of it in the > documentation. I hit accidentally over 32000 as height and got that error. > > 2) I want to define the style of the title. > > title.Font = new Font("Arial", 11) > > I was told earlier that i need to add the Font constructor that takes 3 > arguments. i do not see any reference of it in the documentation. So > where/how do I put the third argument which is "style". I randomly tried the > following fews: > > new Font("Arial", 11, "bold") > new Font("Arial", 11, Style.Bold) > new Font("Arial", "bold", 11) > > Unfortunately, it did not get to work. > > Thanks in advance, > Alomgir > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.