顯示具有 範本 標籤的文章。 顯示所有文章
顯示具有 範本 標籤的文章。 顯示所有文章

2025年12月19日 星期五

[研究]Word 2019 顯示 .docx 套用的樣式範本 ?

[研究]Word 2019 顯示 .docx 套用的樣式範本 ?

2025-12-18

在 Word 2019 中,你可以查看 文件套用的樣式和範本,操作方式如下:

ChatGPT

一、查看段落/文字使用的樣式

  1. 開啟你的 .docx 文件。
  2. 在「首頁」功能區找到 樣式群組。
  3. 點右下角小箭頭(或按 Alt + Ctrl + Shift + S)開啟 樣式窗格。
  4. 選中文本,樣式窗格會高亮顯示該段落/文字使用的 樣式名稱。
  5. 在樣式旁邊右鍵 → 「修改」 → 可看到該樣式是否基於範本或其他樣式。

下圖,

下圖,未使用某範本的 Word 2019 的 .docx 看到的樣式

下圖,


下圖,使用某範本的 Word 2019 的 .docx 看到的樣式



二、查看套用的範本

  1. 點擊 「開發人員」 標籤(如果沒看到,先啟用:檔案 → 選項 → 自訂功能區 → 勾選「開發人員」)。
  2. 在「開發人員」中點 文件範本。
  3. 「文件範本」視窗會顯示:範本路徑(例如 Normal.dotm 或自訂 .dotx/.dotm)、自動更新樣式 是否勾選
  4. 這裡可以切換範本或更新樣式。




下圖,空白文件看到

下圖,某套用範本後的 .docx 看到


(完)

2025年9月5日 星期五

[研究]Opentext Fortify SAST (SCA) 25.0 預設提供 pdf 範本

[研究]Opentext Fortify SAST (SCA) 25.0 預設提供 pdf 範本

2025-09-05

Fortify SAST (SCA) 25.3 預設提供的 fpr => pdf 範本 ( .xml) 儲存在哪個目錄 ? 檔案名稱 ?

ChatGPT 說:

我幫你整理一下 Fortify SAST (SCA) 25.x 的情況:

Fortify SCA 會在安裝時就附帶一些 報告範本 (Report Templates),這些就是你用 ReportGenerator 把 .fpr 轉成 PDF / HTML / RTF 時所用的 .xml 範本檔。

預設位置

在 Windows 上,Fortify SCA 25.0 預設安裝路徑是:

C:\Program Files\Fortify\Fortify_SCA_and_Apps_<version>\Core\config\ReportTemplates

註:敝人實際檢查,存在目錄

C:\Program Files\Fortify\OpenText_Application_Security_Tools_25.2.0\Core\config

C:\Program Files\Fortify\OpenText_Application_Security_Tools_25.2.0\Core\config\reports

C:\Program Files\Fortify\OpenText_SAST_Fortify_25.3.0\Core\config

但不存在 ReportTemplates 子目錄

**********

C:\Program Files\Fortify\OpenText_Application_Security_Tools_25.2.0\Core\config\reports 的目錄

2025/08/08  下午 01:37    <DIR>          .

2025/08/08  下午 01:37    <DIR>          ..

2025/05/02  下午 11:49             7,781 DefaultReportDefinition.xml

2025/05/02  下午 11:49             2,624 DeveloperWorkbook.xml

2025/05/02  下午 11:49               497 footer.png

2025/05/02  下午 11:49               690 fortify.png

2025/05/02  下午 11:49               761 header.png

2025/05/02  下午 11:49             4,686 OT_logo.png

2025/05/02  下午 11:49             2,538 OWASP2004.xml

2025/05/02  下午 11:49             2,538 OWASP2007.xml

2025/05/02  下午 11:49             2,538 OWASP2010.xml

2025/05/02  下午 11:49             2,915 OWASP2013.xml

2025/05/02  下午 11:49             3,203 ScanReport.xml

              11 個檔案          30,771 位元組

**********               

在 Linux 上,通常是:

/opt/fortify/Fortify_SCA_and_Apps_<version>/Core/config/ReportTemplates

常見範本檔案 (.xml)

以下是常見隨附的範本檔名(25.3 應該也一致):

  • AuditReport.xml  <= 敝人實際檢查不存在
  • DeveloperWorkbook.xml  <= 存在
  • ExecutiveReport.xml <= 不存在
  • IssueDetails.xml <= 不存在
  • QuickViewReport.xml <= 不存在
  • SecurityAuditReport.xml <= 不存在

其中 ExecutiveReport.xml、QuickViewReport.xml、SecurityAuditReport.xml 這幾個最常被用來輸出 PDF 報告。

👉 你可以透過以下命令確認有哪些範本:

ReportGenerator -list-templates

會列出所有可用的範本名稱及對應的 .xml 檔。

註:實際測試,無此參數

C:\>ReportGenerator -list-templates

Error: Unrecognized argument: -list-templates

要轉成 PDF 時範例:

ReportGenerator -template QuickViewReport -format pdf -f report.pdf -source scan.fpr

********************************************************************************

實際測試,真正提供的參數

C:\>ReportGenerator


Fortify ReportGenerator Help:

Usage: -format pdf -f outputFile.pdf -source myAuditedProject.fpr

Required Options:
        -format         Output format (pdf, xml)
        -f              The file to which results are written
        -source         The audit project on which to base the report

Additional Options:
        -template       The Fortify Report template used to define the report.
                        If omitted then the default template is used
        -user           The user name to include in the report.
        -showRemoved    Include removed issues in the report.
        -showSuppressed Include suppressed issues in the report.
        -showHidden     Include hidden issues in the report.
        -filterSet      The filterset used when generating the report.
        -verbose        Output verbose status messages to the console.
        -debug          Enable debug logging.



C:\>

********************************************************************************

(完)