My application has an issue with Windows Vista Operating System please help me

Discussion in 'Programming' started by ravisankar, Apr 12, 2008.

  1. #1
    We are generating the reports in our application by using coldfusion Coding. Application Working fine with Windows XP to generate the reports in EXCEL format in the same browser window.

    I am trying to use the Windows Vista I am facing one issue. i.e When i click to generate the report it is generating the report in EXCEL in another browser window not in the same browser. If am clicking back button in the main browser then also the second window is still opened. So i need you people's help to resolve the issue. Please send me your valuable suggestions for this.
     
    ravisankar, Apr 12, 2008 IP
  2. datropics

    datropics Peon

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Hi,

    Is it possible that you can send a snippet of your code so that we can see what it is that you are doing?

    Thanks
     
    datropics, Apr 12, 2008 IP
  3. ravisankar

    ravisankar Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This is the piece of code i have used to generate the report. I just send main piece of code. Please validate this and please send me the what is the issue with Windows Vista same working in Windows XP.

    <cfif #type# is "Excel">
    <cfcontent type = "Application/x-msexcel">
    </cfif>

    <div align="center">
    <font size="+3">
    <!-- Updated label of "Account Code" with the label "FRC/Account Code" -->
    FRC/Account Code List
    </font>
    <br>
    </div>

    <div align="right">
    <cfif isdefined("fromtools")>
    <a href="ReportsForm.cfm"><img src="images/ReturnImg.gif"></a>
    <cfelseif isdefined("fromadmin")>
    <cfoutput>
    <cfif isdefined("Main_id_ref")>
    <a href="AdminTableReports.cfm?main_id=#main_id#&Main_id_ref=#Main_id_ref#"><img src="images/ReturnImg.gif"></a>
    <cfelse>
    <a href="AdminTableReports.cfm?main_id=#main_id#"><img src="images/ReturnImg.gif"></a>
    </cfif>
    </cfoutput>
    <cfelse>
    <a href="AddAcctCode.cfm"><img src="images/ReturnImg.gif"></a>
    </cfif>
    </div>

    <br><br>


    <div align="center">
    <table border="1" width="80%" bordercolor="Blue">
    <tr>
    >
    <th>FRC/Account <br>Code</th>
    <th>Description</th>
    <th>Alias</th>
    <th>Cost <br>Category</th>
    <th>HECI <br>Required</th>
    <!-- New field added "In Service Date Required" -->
    <th>In Service Date <br>Required</th>
    <th>MIC <br>Required</th>
    <th>Time <br>Reporting</th>
    </tr>
    <cfoutput query="getList">
    <tr align="left">
    <td>#ACCT_CODE#</td>
    <td>#DESCRIPTION#</td>
    <td><cfif #AC_Alias# eq ""> &nbsp; <cfelse> #AC_Alias# </cfif> </td>
    <td><cfif #Exp_Code# eq "">&nbsp;<cfelse> #Exp_Code# </cfif></td>
    <cfif #HECI_REQ_IND# is "0" >
    <td>False</td>
    <cfelse>
    <td>True</td>
    </cfif>
    <cfif #IN_SERVICE_DATE# is "N" >
    <td>False</td>
    <cfelse>
    <td>True</td>
    </cfif>
    <cfif #MIC_REQUIRED# is "0" >
    <td>False</td>
    <cfelse>
    <td>True</td>
    </cfif>
    <cfif #TIMEREPORTING_FLAG# is "N" >
    <td>False</td>
    <cfelse>
    <td>True</td>
    </cfif>
    </tr>
    </cfoutput>

    </table>
    <br><br>
    <cfif isdefined("fromtools")>
    <a href="ReportsForm.cfm"><img src="images/ReturnImg.gif"></a>
    <cfelseif isdefined("fromadmin")>
    <cfoutput>
    <cfif isdefined("Main_id_ref")>
    <a href="AdminTableReports.cfm?main_id=#main_id#&Main_id_ref=#Main_id_ref#"><img src="images/ReturnImg.gif"></a>
    <cfelse>
    <a href="AdminTableReports.cfm?main_id=#main_id#"><img src="images/ReturnImg.gif"></a>
    </cfif>
    </cfoutput>
    <cfelse>
    <a href="AddAcctCode.cfm"><img src="images/ReturnImg.gif"></a>
    </cfif>
    <cfelseif url.option is "delete">
     
    ravisankar, Apr 13, 2008 IP
  4. datropics

    datropics Peon

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #4
    All and all it seems ok. There are some issues with your style as it relates to variable specification but in terms of the item at hand, consider doing research on the following:

    CFCONTENT tag
    CFHEADER tag

    If you want you can check these search results.

    I believe your answer lies in the cfheader tag

    In your use of the code though, you might want to check the CFSILENT tag as well
     
    datropics, Apr 14, 2008 IP