Click here to Skip to main content
15,905,877 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Best Free CMS? Pin
lbothell11-Mar-08 7:40
lbothell11-Mar-08 7:40 
GeneralRe: Best Free CMS? Pin
Vasudevan Deepak Kumar12-Mar-08 4:42
Vasudevan Deepak Kumar12-Mar-08 4:42 
QuestionWhere did the style of textarea go in Firefox? Pin
Xiangyang Liu 刘向阳10-Mar-08 7:08
Xiangyang Liu 刘向阳10-Mar-08 7:08 
AnswerRe: Where did the style of textarea go in Firefox? Pin
Guffa11-Mar-08 9:55
Guffa11-Mar-08 9:55 
GeneralRe: Where did the style of textarea go in Firefox? Pin
Xiangyang Liu 刘向阳11-Mar-08 11:37
Xiangyang Liu 刘向阳11-Mar-08 11:37 
GeneralRe: Where did the style of textarea go in Firefox? Pin
Guffa11-Mar-08 11:44
Guffa11-Mar-08 11:44 
JokeRe: Where did the style of textarea go in Firefox? Pin
Xiangyang Liu 刘向阳12-Mar-08 3:22
Xiangyang Liu 刘向阳12-Mar-08 3:22 
QuestionHow to apply code to generate graph (ASP & vbscript) using office 2003? Pin
vjo4610-Mar-08 2:02
vjo4610-Mar-08 2:02 
My web app using component of excel XP to generate graph when user upgrade microsoft office XP to 2003, site has an error "Doesn't support property & method". Could you suggest this sulotion. My code is below ..

Help me please !!!!

sub window_onload()

with document.Chart1
.Clear
.Charts.Add
<%if request("txtGraphType")="Pie" then%>
.Charts(0).Type=18
.Charts(0).HasLegend=true
<%elseif request("txtGraphType")="Line" then%>
.Charts(0).Type=6
.Charts(0).HasLegend=true
<%else%> 'Bar graph
.Charts(0).Type=1
.Charts(0).HasLegend=false
<%end if%>

do while not rsChoice.eof
if tmpDesc <> rsChoice("detail") then
if tmpDesc <> "" then
%>
.Charts(0).SeriesCollection.Add
.Charts(0).SeriesCollection(iSeries).Caption ="<%=tmpDesc%>"
.Charts(0).SeriesCollection(iSeries).SetData .Constants.chDimCategories, .Constants.chDataLiteral, strData
.Charts(0).SeriesCollection(iSeries).SetData .Constants.chDimValues, .Constants.chDataLiteral,strValue

.Charts(0).SeriesCollection(iSerieS).DataLabelsCollection.Add()

<%if request("txtDataType")="Percent" then%>
.Charts(0).SeriesCollection(iSeries).DataLabelsCollection(0).NumberFormat = "##0\%"
<%end if%>
.Charts(0).SeriesCollection(iSeries).DataLabelsCollection(0).HasValue = true
iSeries=iSeries+1
<%
end if
tmpDesc = rsChoice("detail")
%>
strValue=""
strData=""
<% 'tmpPeriod=rsChoice("period")
end if

tmpPeriod= request("txtMonthStart")+"/01/"+request("txtYearStart")
do while datediff("m",tmpPeriod,request("txtMonthEnd")+"/01/"+request("txtYearEnd"))>=0
%> strData=strData+"<%=mid(monthname(month(tmpPeriod)),1,3)%>"+" <%=year(tmpPeriod)%>"+vbTab

<%

if len(month(tmpPeriod)) = 1 then
tmpPeriod2=year(tmpPeriod) &"0"& month(tmpPeriod)
else
tmpPeriod2=year(tmpPeriod) & month(tmpPeriod)
end if

if cdbl(tmpPeriod2) = cdbl(rsChoice("period")) then
if request("txtDataType")="Percent" then%>
strValue=strValue+"<%=rsChoice("percentage")%>"+vbTab
<%else%>
strValue=strValue+"<%=rsChoice("value")%>"+vbTab
<%end if
rsChoice.movenext
else%>
strValue=strValue+"0"+vbTab
<% end if
tmpPeriod=DateAdd("m", 1, tmpPeriod)
loop
loop
%>

.Charts(0).SeriesCollection.Add
.Charts(0).SeriesCollection(iSeries).Caption ="<%=tmpDesc%>"
.Charts(0).SeriesCollection(iSeries).SetData .Constants.chDimCategories, .Constants.chDataLiteral, strData
.Charts(0).SeriesCollection(iSeries).SetData .Constants.chDimValues, .Constants.chDataLiteral,strValue

.Charts(0).SeriesCollection(iSerieS).DataLabelsCollection.Add()

<%if request("txtDataType")="Percent" then%>
.Charts(0).SeriesCollection(iSeries).DataLabelsCollection(0).NumberFormat = "##0\%"
<%end if%>
.Charts(0).SeriesCollection(iSeries).DataLabelsCollection(0).HasValue = true
<% else
do while not rsChoice.eof
%>
strData=strData+"<%=rsChoice("detail")%>"+vbTab

<% if request("txtDataType")="Percent" then%>
strValue=strValue+"<%=rsChoice("percentage")%>"+vbTab
<% else%>
strValue=strValue+"<%=rsChoice("value")%>"+vbTab
<% end if
rsChoice.movenext
loop
%>
.Charts(0).SeriesCollection.Add
.Charts(0).SeriesCollection(0).SetData .Constants.chDimCategories, .Constants.chDataLiteral, strData
.Charts(0).SeriesCollection(0).SetData .Constants.chDimValues, .Constants.chDataLiteral,strValue

.Charts(0).SeriesCollection(0).DataLabelsCollection.Add()
.Charts(0).SeriesCollection(0).DataLabelsCollection(0).HasValue = true
<% if request("txtDataType")="Percent" then %>
.Charts(0).SeriesCollection(0).DataLabelsCollection(0).NumberFormat = "##0\%"
<% else%>
.Charts(0).SeriesCollection(0).DataLabelsCollection(0).NumberFormat = "#,##0"
<% end if

rsChoice.close
set rsChoice=nothing
end if
%>

end with
end sub

<body>
<form name=form1>
<object id="Chart1" classid="CLSID:0002E500-0000-0000-C000-000000000046" width="100%" height="300"></object>
</body>
GeneralCrystal Reports Error - BOBJ is undefined Pin
livez10-Mar-08 1:44
livez10-Mar-08 1:44 
GeneralRe: Crystal Reports Error - BOBJ is undefined Pin
livez12-Mar-08 2:23
livez12-Mar-08 2:23 
GeneralRe: Crystal Reports Error - BOBJ is undefined Pin
Amit Pankajkumar Shah17-Jun-11 19:12
Amit Pankajkumar Shah17-Jun-11 19:12 
GeneralRe: Crystal Reports Error - BOBJ is undefined Pin
mostafa_nagar20-Mar-10 9:13
mostafa_nagar20-Mar-10 9:13 
GeneralRe: Crystal Reports Error - BOBJ is undefined Pin
harishkumardaga21-Nov-11 19:09
harishkumardaga21-Nov-11 19:09 
GeneralRe: Crystal Reports Error - BOBJ is undefined Pin
Member 466304319-Apr-12 20:55
Member 466304319-Apr-12 20:55 
Questionintegrating ebay search Pin
Syed Gauhar Abbas9-Mar-08 23:48
Syed Gauhar Abbas9-Mar-08 23:48 
GeneralRe: integrating ebay search Pin
Scott Dorman10-Mar-08 7:12
professionalScott Dorman10-Mar-08 7:12 
QuestionHow can I set TextBox value from asp.net Listbox, because I popuplate asp.net Listbox through java script.. Pin
Vishnu Narayan Mishra9-Mar-08 23:21
Vishnu Narayan Mishra9-Mar-08 23:21 
AnswerRe: How can I set TextBox value from asp.net Listbox, because I popuplate asp.net Listbox through java script.. Pin
Christian Graus9-Mar-08 23:38
protectorChristian Graus9-Mar-08 23:38 
AnswerRe: How can I set TextBox value from asp.net Listbox, because I popuplate asp.net Listbox through java script.. Pin
Vishnu Narayan Mishra10-Mar-08 1:09
Vishnu Narayan Mishra10-Mar-08 1:09 
GeneralUsing tor to connect with different ip each time Pin
metallica_rock109-Mar-08 21:09
metallica_rock109-Mar-08 21:09 
GeneralRe: Using tor to connect with different ip each time Pin
Christian Graus9-Mar-08 23:43
protectorChristian Graus9-Mar-08 23:43 
QuestionConditional HTML for IE and WAP Pin
Som Gollakota9-Mar-08 14:15
Som Gollakota9-Mar-08 14:15 
Generallocalization - Browser's language and javascript Pin
militiaware8-Mar-08 21:50
militiaware8-Mar-08 21:50 
GeneralRe: localization - Browser's language and javascript Pin
Johnny ²8-Mar-08 22:12
Johnny ²8-Mar-08 22:12 
GeneralRe: localization - Browser's language and javascript Pin
militiaware9-Mar-08 3:14
militiaware9-Mar-08 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.