Primo.Office.P7.Core
0.0.3
dotnet add package Primo.Office.P7.Core --version 0.0.3
NuGet\Install-Package Primo.Office.P7.Core -Version 0.0.3
<PackageReference Include="Primo.Office.P7.Core" Version="0.0.3" />
<PackageVersion Include="Primo.Office.P7.Core" Version="0.0.3" />
<PackageReference Include="Primo.Office.P7.Core" />
paket add Primo.Office.P7.Core --version 0.0.3
#r "nuget: Primo.Office.P7.Core, 0.0.3"
#addin nuget:?package=Primo.Office.P7.Core&version=0.0.3
#tool nuget:?package=Primo.Office.P7.Core&version=0.0.3
About
The Primo RPA robot uses elements of the package to automate interaction with P7 Office. Warning: primo_p7.plugin should be installed in P7 Office.
How to Use
In Primo RPA studio, create a project that will be executed by Primo RPA robot. Install this package via the ".Dependencies → Manage Dependencies" menu; the "P7 - Documents" and "P7 - Tables" nodes with package elements will appear in Elements tree.
Documents
The "P7 document" element is a container for all other elements that are children of the "P7 - Documents" node. This element is used to connect to P7 text application.
In pure code projects use the element as follows:
//wf: [LTools.Common.Model.WorkflowData] parent algorithm link
//fileName - File name: [String] Name of opened text document without path ("Document1.docx"")
Primo.Office.P7.P7Inst.P7Document app = new Primo.Office.P7.P7Inst.P7Document();
app.AttachByFilePath(fileName);
All other child elements of the "MyOffice - Text" node should be placed inside the "MyOffice Text" container to process the document. "Replace text" element in pure code:
//Replaces specified text in a document.
//Properties
//app - [Primo.Office.P7.P7Inst.P7Document] P7 document application
//oldText - Text: [String] Replaced text
//newText - Text: [String] New text
app.ReplaceText(oldText, newText);
Workbooks
The "P7 workbook" element is a container for all other elements that are children of the "P7 - Tables" node. This element is used to connect to P7 workbook application.
In pure code projects use the element as follows:
//fileName - File name: [String] Name of opened workbook document without path ("Workbook.xlsx"")
Primo.Office.P7.P7Inst.P7Tables app = new Primo.Office.P7.P7Inst.P7Tables();
app.AttachByFilePath(fileName);
All other child elements of the "MyOffice - Tables" node should be placed inside the "MyOffice Table" container to process the document.
"Add sheet" element in pure code:
//Element creates a new sheet in a workbook.
//Properties
//app - [Primo.Office.P7.P7Inst.P7Tables] Workbook application
//name - Name: [String] Sheet name
//index - Index: [Int32] Sheet index
app.SheetsAdd(name, [index])
Key Features
- A large set of elements for diverse and high-quality processing of documents and workbooks with P7 Office
- High performance
- Supports .NET 8+
Main Types
- Primo.Office.P7.P7Inst.P7Document
- Primo.Office.P7.P7Inst.P7Tables
Feedback
Bug reports and contributions are welcome at Primo RPA chat
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.3 | 149 | a month ago |