SOS,有关HTML的时效性!!

zhangzhiqiang 2000-02-16 01:44:00
加精
本人做了一个Web程序,但是想客户端访问时,令页面一直是最新状态,且无法回滚,主要是想屏蔽掉IE中自带的(后退)功能,在WEB端能实现吗??如在客户端,又该如何设置。
另外,有关网上报表的打印也是有一点困难,如发票打印等等。
最好能提供详细的结决方法,如果网上有相关资料,请著名网址
谢谢!!!
说明: 本人的WEB应用基于CGI(C language).
...全文
430 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhangzhiqiang 2000-02-23
  • 打赏
  • 举报
回复
我准备用控件实现了.
softdoctor 2000-02-22
  • 打赏
  • 举报
回复
请看瑞软在线演示
http://www.readsoft.com.cn/chinese/onlinedemo.htm
zhangzhiqiang 2000-02-20
  • 打赏
  • 举报
回复
JavaScript中的二级子菜单如何实现
zhangzhiqiang 2000-02-19
  • 打赏
  • 举报
回复
CGI中如何在服务器端装载数据哪?
Server端该如何写。
以瑞软为例,请教其CGI中该输出些什么内容。(参数如何传入控件中,且控件正确显示报表内容),即参数赋值如何附。感谢你的帮助。
softdoctor 2000-02-17
  • 打赏
  • 举报
回复
控件是在客户端运行的,
执行时只需要从服务器下载控件,
与服务器无关的。
瑞软表单可以从服务器装载数据,该数据为一个二进制文件。
瑞软表单的打印功能很强大。
可以试一试。
http://www.readsoft.com.cn/default.htm
DOU 2000-02-17
  • 打赏
  • 举报
回复
ActiveX控件只在IE中支持,也许用JAVA Applet试一试
在IE中打印只要把打印页面设置中的页眉,页脚设置清空,就没有页码和IE标题栏的文件来源,只要仔细控制格式,页面长度等,不用控件也应该是可以的
netmare 2000-02-17
  • 打赏
  • 举报
回复
控件是在客户端运行的,只要ie能从你的服务器上下载就可以了,服务器是否unix无所谓
zhangzhiqiang 2000-02-17
  • 打赏
  • 举报
回复
众位兄台:
我想有必要把问题再讲清楚。
服务器:Unix;
终端 :windows98 ,IE4.0.终端打印机,OKI5330。
我想在终端实现报表和票据的打印。
控件的方式也曾用过,但Unix好象不支持。
DOU兄所提CSS,我也已试过,分页是实现了,但只是分页,还是要打印两张纸。且有页码和IE标题栏的文件来源,不太合适。
softdoctor 2000-02-16
  • 打赏
  • 举报
回复
网上报表单据打印可用相应的ActiveX控件。
可在可户端控制。
强力推荐:
瑞软表单控件:http://www.readsoft.com.cn/chinese/default.htm
如有疑问可向北京瑞软公司询问
DOU 2000-02-16
  • 打赏
  • 举报
回复
控制文档过期,使用META标记,例:
<META HTTP-EQUIV="expires"
VALUE="Tue, 23 Jun 1998 01:46:05 GMT">

使用CSS的page-break-before,page-break-after进行打印控制

These two properties allow the developer to specify exact locations for page breaks that affect the printing of the document.

Property: page-break-before
Valid Values: auto and always and and left and right
Sample Usage:{ page-break-before:always; }
Applies to:block-level elements
Inherited?:no

Property: page-break-after
Valid Values: auto and always and and left and right
Sample Usage:{ page-break-before:auto; }
Applies to:block-level elements
Inherited?:no

对page-break-before和pageBreakBefore的详细介绍

page-break-before Attribute and pageBreakBefore Property

--------------------------------------------------------------------------------

Sets or retrieves whether a page break occurs before the object.

Syntax

HTML { page-break-before: sBreak }
Scripting object.style.pageBreakBefore [ = sBreak ]


Possible Values

sBreak String that specifies one of the following values: always Always insert a page break before the object.
"" Empty string does not insert a page break.


The property is read/write with no default value; the cascading style sheets (CSS) attribute is not inherited.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Remarks

This property applies when printing the document.

If there are conflicts between this property and the pageBreakAfter value object previously displayed in the browser, the value that results in the largest number of page breaks is used.

Page breaks are not permitted inside positioned objects.

Example

The following examples use the page-break-before attribute and the pageBreakBefore property to start printing on a new page.

This example uses the H3 element as a selector in an embedded style sheet to break the page before all H3 headings.

Sample Code

<STYLE>
H3 { page-break-before: always }
</STYLE>
</HEAD>
<BODY>
<H3>Start New Section on New Page</H3>


This example uses a call to a function to turn off the page break before the object that has an id value of idParagraph. When the page is printed, a page break occurs before the first paragraph unless the user clicks the Turn Off Break button.

<SCRIPT>
function offBreak()
{
idParagraph.style.pageBreakBefore="";
}
</SCRIPT>
</HEAD>
<BODY>
<BUTTON onClick="offBreak()">Turn off break</BUTTON>
<P ID="Paragraph" STYLE="page-break-before:always">
:
</P>

更详细信息请参阅MSDN(虽然是在用UNIX C来写CGI,MSDN还是很有参考价值)
netmare 2000-02-16
  • 打赏
  • 举报
回复
<head>
...
<meta http-equiv="refresh" content="3;url=index.htm">
...
</head>
表示每隔三秒刷新一次index.htm
不知打印什么样的发票,如果使用存折打印机,OKI5330或PR系列,可以在叶面中嵌入能对串口或并口操作的activex控件,通过控件对打印机发控制序列,控制其走纸或字体等,同样也可操作LQ1600系列打印机
至于有没有现成的控件,我也不太清楚,自己做一个也不太难
radish 2000-02-16
  • 打赏
  • 举报
回复
自动更新是可以的,不让后退好象不可能,打印我也想知道答案

69,336

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧