Printing a page

A

Amateur

Dear Sirs
I have a main Index page with two frames.
One called 'I1' - the other 'working_area' . In the frame 'I1' is opening an
ASP page where, with a button click, I should be able to print an ASPlistpage
which is opening in the 'working_area' frame.

Now, if I click the button its printing one record shown from the 'I1' frame
(but it should print the ASPlistpage which is opening in the 'working_area'
frame).
If the ASPlistpage is opening in a new browser window everything is OK. If
the ASPlistpage is opening in the 'working_area' frame I have that problem.

Here is the code from my buttons:

<tr><td align="center" colspan="3">
<p>
<% If cmd<>"New" And cmd<>"Copy" Then %>
<input type="button" value="¦<"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=First&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para ir al primer registro")%>
Class="formpagebutton">
<input type="button" value="<<"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Prev&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Mueva un registro hacia atrás")%> Class="formpagebutton">
<input type="text" size="8" Value="<%=Session("CurRec")%> de
<%=Session("NumOfRecs")%>" Class="formpagebutton">
<input type="button" value=">>"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Next&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para ir para registrar después")%>
Class="formpagebutton">
<input type="button" value=">¦"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Last&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para ir al último registro")%>
Class="formpagebutton">
<br>
<input type="submit" value="Ahorrar" <%=ShowTextOnPic("Chasquido aquí para
salvar sus cambios")%> Class="formpagebutton">
<input type="button" value="Borrar"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Del&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para borrar el registro corriente")%>
Class="formpagebutton">
<input type="button" value="Nuevo"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=New&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para crear un nuevo registro")%>
Class="formpagebutton">
<input type="button" value="Imprima todos"
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
<%=ShowTextOnPic("Chasquido aquí para imprimir todos los archivos")%>
Class="formpagebutton">
<input type="hidden" name="autonumber" value="<%=session("autonumber")%>">
<input type="Hidden"name="cmd" value="Save">
<p>
<% Else %>
<input type="submit" value="Ahorrar" <%=ShowTextOnPic("Chasquido para salvar
el nuevo registro")%> Class="formpagebutton">
<input type="button" value="Anular"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp'"
<%=ShowTextOnPic("Chasquido para anular creación de un nuevo registro")%>
Class="formpagebutton">
<input type="hidden" name="cmd" value="SaveNew">
</p></p>
<%End If %>
</td></tr>


This is the printing button alone:

<input type="button" value="Imprima todos"
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
<%=ShowTextOnPic("Chasquido aquí para imprimir todos los archivos")%>
Class="formpagebutton">


Has anyone an idea how I can solve that problem?
Thanks
Klaus
 
S

Stefan B Rusynko

You are using the canned script generated from the ATAF generator
for support with their code contact them at
http://www.ccr.dk/design/default.asp

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Dear Sirs
| I have a main Index page with two frames.
| One called 'I1' - the other 'working_area' . In the frame 'I1' is opening an
| ASP page where, with a button click, I should be able to print an ASPlistpage
| which is opening in the 'working_area' frame.
|
| Now, if I click the button its printing one record shown from the 'I1' frame
| (but it should print the ASPlistpage which is opening in the 'working_area'
| frame).
| If the ASPlistpage is opening in a new browser window everything is OK. If
| the ASPlistpage is opening in the 'working_area' frame I have that problem.
|
| Here is the code from my buttons:
|
| <tr><td align="center" colspan="3">
| <p>
| <% If cmd<>"New" And cmd<>"Copy" Then %>
| <input type="button" value="¦<"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=First&autonumber=<%=Session("autonumber")%>'"
| <%=ShowTextOnPic("Chasquido para ir al primer registro")%>
| Class="formpagebutton">
| <input type="button" value="<<"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Prev&autonumber=<%=Session("autonumber")%>'"
| <%=ShowTextOnPic("Mueva un registro hacia atrás")%> Class="formpagebutton">
| <input type="text" size="8" Value="<%=Session("CurRec")%> de
| <%=Session("NumOfRecs")%>" Class="formpagebutton">
| <input type="button" value=">>"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Next&autonumber=<%=Session("autonumber")%>'"
| <%=ShowTextOnPic("Chasquido para ir para registrar después")%>
| Class="formpagebutton">
| <input type="button" value=">¦"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Last&autonumber=<%=Session("autonumber")%>'"
| <%=ShowTextOnPic("Chasquido para ir al último registro")%>
| Class="formpagebutton">
| <br>
| <input type="submit" value="Ahorrar" <%=ShowTextOnPic("Chasquido aquí para
| salvar sus cambios")%> Class="formpagebutton">
| <input type="button" value="Borrar"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Del&autonumber=<%=Session("autonumber")%>'"
| <%=ShowTextOnPic("Chasquido para borrar el registro corriente")%>
| Class="formpagebutton">
| <input type="button" value="Nuevo"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=New&autonumber=<%=Session("autonumber")%>'"
| <%=ShowTextOnPic("Chasquido para crear un nuevo registro")%>
| Class="formpagebutton">
| <input type="button" value="Imprima todos"
|
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
| <%=ShowTextOnPic("Chasquido aquí para imprimir todos los archivos")%>
| Class="formpagebutton">
| <input type="hidden" name="autonumber" value="<%=session("autonumber")%>">
| <input type="Hidden"name="cmd" value="Save">
| <p>
| <% Else %>
| <input type="submit" value="Ahorrar" <%=ShowTextOnPic("Chasquido para salvar
| el nuevo registro")%> Class="formpagebutton">
| <input type="button" value="Anular"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp'"
| <%=ShowTextOnPic("Chasquido para anular creación de un nuevo registro")%>
| Class="formpagebutton">
| <input type="hidden" name="cmd" value="SaveNew">
| </p></p>
| <%End If %>
| </td></tr>
|
|
| This is the printing button alone:
|
| <input type="button" value="Imprima todos"
|
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
| <%=ShowTextOnPic("Chasquido aquí para imprimir todos los archivos")%>
| Class="formpagebutton">
|
|
| Has anyone an idea how I can solve that problem?
| Thanks
| Klaus
|
|
|
|
 
A

Amateur

Thank you for your remark - but ATAF support is not answering since 14 days.
Anyway, it's a java problem and not an ASP problem (because the ASP is
working if I open the print page in a new browser window) - so, its as well
not an ATAF question.

The point of placing it here was, that someone just have a look through my
lines and tell me where the mistake is - didn't know that this is such a big
deal MS-Office on-line forum.

Anyway, sorry for the time I took from you to read my post and to answer me.
Klaus



Stefan B Rusynko said:
You are using the canned script generated from the ATAF generator
for support with their code contact them at
http://www.ccr.dk/design/default.asp

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Dear Sirs
| I have a main Index page with two frames.
| One called 'I1' - the other 'working_area' . In the frame 'I1' is opening an
| ASP page where, with a button click, I should be able to print an ASPlistpage
| which is opening in the 'working_area' frame.
|
| Now, if I click the button its printing one record shown from the 'I1' frame
| (but it should print the ASPlistpage which is opening in the 'working_area'
| frame).
| If the ASPlistpage is opening in a new browser window everything is OK. If
| the ASPlistpage is opening in the 'working_area' frame I have that problem.
|
| Here is the code from my buttons:
|
| <tr><td align="center" colspan="3">
| <p>
| <% If cmd<>"New" And cmd<>"Copy" Then %>
| <input type="button" value="¦<"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=First&autonumber=<%=Session("autonumber")%>'"
| <%=ShowTextOnPic("Chasquido para ir al primer registro")%>
| Class="formpagebutton">
| <input type="button" value="<<"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Prev&autonumber=<%=Session("autonumber")%>'"
| <%=ShowTextOnPic("Mueva un registro hacia atrás")%> Class="formpagebutton">
| <input type="text" size="8" Value="<%=Session("CurRec")%> de
| <%=Session("NumOfRecs")%>" Class="formpagebutton">
| <input type="button" value=">>"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Next&autonumber=<%=Session("autonumber")%>'"
| <%=ShowTextOnPic("Chasquido para ir para registrar después")%>
| Class="formpagebutton">
| <input type="button" value=">¦"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Last&autonumber=<%=Session("autonumber")%>'"
| <%=ShowTextOnPic("Chasquido para ir al último registro")%>
| Class="formpagebutton">
| <br>
| <input type="submit" value="Ahorrar" <%=ShowTextOnPic("Chasquido aquí para
| salvar sus cambios")%> Class="formpagebutton">
| <input type="button" value="Borrar"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Del&autonumber=<%=Session("autonumber")%>'"
| <%=ShowTextOnPic("Chasquido para borrar el registro corriente")%>
| Class="formpagebutton">
| <input type="button" value="Nuevo"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=New&autonumber=<%=Session("autonumber")%>'"
| <%=ShowTextOnPic("Chasquido para crear un nuevo registro")%>
| Class="formpagebutton">
| <input type="button" value="Imprima todos"
|
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
| <%=ShowTextOnPic("Chasquido aquí para imprimir todos los archivos")%>
| Class="formpagebutton">
| <input type="hidden" name="autonumber" value="<%=session("autonumber")%>">
| <input type="Hidden"name="cmd" value="Save">
| <p>
| <% Else %>
| <input type="submit" value="Ahorrar" <%=ShowTextOnPic("Chasquido para salvar
| el nuevo registro")%> Class="formpagebutton">
| <input type="button" value="Anular"
| onClick="javascript:top.frames['I1'].location='contactos_1001form.asp'"
| <%=ShowTextOnPic("Chasquido para anular creación de un nuevo registro")%>
| Class="formpagebutton">
| <input type="hidden" name="cmd" value="SaveNew">
| </p></p>
| <%End If %>
| </td></tr>
|
|
| This is the printing button alone:
|
| <input type="button" value="Imprima todos"
|
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
| <%=ShowTextOnPic("Chasquido aquí para imprimir todos los archivos")%>
| Class="formpagebutton">
|
|
| Has anyone an idea how I can solve that problem?
| Thanks
| Klaus
|
|
|
|
 
S

Stefan B Rusynko

See http://irt.org/script/1525.htm

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Thank you for your remark - but ATAF support is not answering since 14 days.
| Anyway, it's a java problem and not an ASP problem (because the ASP is
| working if I open the print page in a new browser window) - so, its as well
| not an ATAF question.
|
| The point of placing it here was, that someone just have a look through my
| lines and tell me where the mistake is - didn't know that this is such a big
| deal MS-Office on-line forum.
|
| Anyway, sorry for the time I took from you to read my post and to answer me.
| Klaus
|
|
|
| "Stefan B Rusynko" wrote:
|
| > You are using the canned script generated from the ATAF generator
| > for support with their code contact them at
| > http://www.ccr.dk/design/default.asp
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > _____________________________________________
| >
| >
| > | Dear Sirs
| > | I have a main Index page with two frames.
| > | One called 'I1' - the other 'working_area' . In the frame 'I1' is opening an
| > | ASP page where, with a button click, I should be able to print an ASPlistpage
| > | which is opening in the 'working_area' frame.
| > |
| > | Now, if I click the button its printing one record shown from the 'I1' frame
| > | (but it should print the ASPlistpage which is opening in the 'working_area'
| > | frame).
| > | If the ASPlistpage is opening in a new browser window everything is OK. If
| > | the ASPlistpage is opening in the 'working_area' frame I have that problem.
| > |
| > | Here is the code from my buttons:
| > |
| > | <tr><td align="center" colspan="3">
| > | <p>
| > | <% If cmd<>"New" And cmd<>"Copy" Then %>
| > | <input type="button" value="¦<"
| > | onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=First&autonumber=<%=Session("autonumber")%>'"
| > | <%=ShowTextOnPic("Chasquido para ir al primer registro")%>
| > | Class="formpagebutton">
| > | <input type="button" value="<<"
| > | onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Prev&autonumber=<%=Session("autonumber")%>'"
| > | <%=ShowTextOnPic("Mueva un registro hacia atrás")%> Class="formpagebutton">
| > | <input type="text" size="8" Value="<%=Session("CurRec")%> de
| > | <%=Session("NumOfRecs")%>" Class="formpagebutton">
| > | <input type="button" value=">>"
| > | onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Next&autonumber=<%=Session("autonumber")%>'"
| > | <%=ShowTextOnPic("Chasquido para ir para registrar después")%>
| > | Class="formpagebutton">
| > | <input type="button" value=">¦"
| > | onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Last&autonumber=<%=Session("autonumber")%>'"
| > | <%=ShowTextOnPic("Chasquido para ir al último registro")%>
| > | Class="formpagebutton">
| > | <br>
| > | <input type="submit" value="Ahorrar" <%=ShowTextOnPic("Chasquido aquí para
| > | salvar sus cambios")%> Class="formpagebutton">
| > | <input type="button" value="Borrar"
| > | onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Del&autonumber=<%=Session("autonumber")%>'"
| > | <%=ShowTextOnPic("Chasquido para borrar el registro corriente")%>
| > | Class="formpagebutton">
| > | <input type="button" value="Nuevo"
| > | onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=New&autonumber=<%=Session("autonumber")%>'"
| > | <%=ShowTextOnPic("Chasquido para crear un nuevo registro")%>
| > | Class="formpagebutton">
| > | <input type="button" value="Imprima todos"
| > |
| >
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
| > | <%=ShowTextOnPic("Chasquido aquí para imprimir todos los archivos")%>
| > | Class="formpagebutton">
| > | <input type="hidden" name="autonumber" value="<%=session("autonumber")%>">
| > | <input type="Hidden"name="cmd" value="Save">
| > | <p>
| > | <% Else %>
| > | <input type="submit" value="Ahorrar" <%=ShowTextOnPic("Chasquido para salvar
| > | el nuevo registro")%> Class="formpagebutton">
| > | <input type="button" value="Anular"
| > | onClick="javascript:top.frames['I1'].location='contactos_1001form.asp'"
| > | <%=ShowTextOnPic("Chasquido para anular creación de un nuevo registro")%>
| > | Class="formpagebutton">
| > | <input type="hidden" name="cmd" value="SaveNew">
| > | </p></p>
| > | <%End If %>
| > | </td></tr>
| > |
| > |
| > | This is the printing button alone:
| > |
| > | <input type="button" value="Imprima todos"
| > |
| >
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
| > | <%=ShowTextOnPic("Chasquido aquí para imprimir todos los archivos")%>
| > | Class="formpagebutton">
| > |
| > |
| > | Has anyone an idea how I can solve that problem?
| > | Thanks
| > | Klaus
| > |
| > |
| > |
| > |
| >
| >
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top