The code below adds the Register Report link on my main page of the application. when clicked it opens a new window for the output which is correct...problem is I need the new window to open first and render the link to the report.
I have tried adding <form> tags to the function to force a new window without success.
<vfp>
THIS.StandardPage("Report Complete",[<a href="/cti/temp/] + lcFile +["]+ [TARGET="_blank"]+[>] +;
[Register Report</a>],,1,"/cti/temp/"+lcFile)
function standardpage()
lcOutput = +;
[<div style="background: navy; color: cornsilk; font-size: 16pt; font-weight: bold;padding: 4px; padding-top:5px; text-align:center;">] +;
lcHeader + [</div>] + CRLF +;
[<div style="padding: 20px;font-size: 10pt;">] + lcBody + [</div>]
*** Default Content Type Header
Response.ContentTypeHeader(lvHeader)
lcOutput = ;
[<html>] +CRLF +;
[<head>] + CRLF +;
[<title>] + lcHeader + [</title>] + CRLF +;
IIF(!EMPTY(Response.cStyleSheet),[<LINK rel="stylesheet" type="text/css" href="] + Response.cStyleSheet +[">],"") +CRLF + ;
[</head>] + CRLF +;
[<body color="#FFFFFF" style="font:normal normal x-small Verdana">] + CRLF + ;
lcOutput
Response.Write(lcOutput)
endfunc
</vfp>
