要实现在某些记录中预览时禁止打印,某些记录预览时允许打印,noprint.dbf和foxuser.dbf都修改了,在vfp中运行时能够正确地区分,但是,单独执行生成的EXE文件,全部恢复到预览即允许打印的状况,请问是什么原因?该如何处理?
------解决方案--------------------------------------------------------
做一个config.fpw文件,放在项目管理器的“其它”选项卡下试试
文件内容:
SCREEN = OFF
ANSI = ON
AUTOSAVE = ON
CONSOLE = OFF
DEBUG = OFF
DELETED = ON
DOHISTORY = OFF
ESCAPE = OFF
EXACT = ON
EXCLUSIVE = OFF
HELP = OFF
NOTIFY = OFF
OPTIMIZE = ON
REFRESH = 0,0
SAFETY = OFF
STATUS = On
STATUS BAR = On
SYSMENU = OFF
SYSFORMATS = ON
TALK = OFF
TITLE = ***软件
VIEW = OFF
RESOURCE=OFF
其实设置打印条件我都是在报表的“打印条件”里设置