VB6:Print#Statement

 Seet琸琸 发布于 2023-02-13 13:35

如何以粗体显示以下字符串"不特定于报告日期的常规单位信息:".

Print #FileNumber, Margin & "General Unit Information not specific to report date:"

#FileNumber定义为Open FileName For Output As #FileNumberFileName是File的位置,Margin是一组空的空格.

有任何想法吗?

1 个回答
  • 你不能在纯文本文件中这样做,但这对我有用.

    打开文件

    Print #FileNumber, "{\rtf"
    Print #FileNumber, Margin & "\b General Unit Information not specific to report date:\b"
    Print #FileNumber, "}"
    

    将文件另存为 Filename.RTF

    在Wordpad中打开

    2023-02-13 13:37 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有