Web Connection 5.0
pdf printing
03/16/2010
01:59:11 PM
2W10TZ8W9 Show this entire thread in new window
Gratar Image based on email address
From:
Charles Steinhauer
To:
All 
Attachments:
None
I am having trouble getting print output to open a new window. Actually with getting the link to the report in a new window.
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>