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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Primo.Office.P7.Core" Version="0.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Primo.Office.P7.Core" Version="0.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Primo.Office.P7.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Primo.Office.P7.Core --version 0.0.3
                    
#r "nuget: Primo.Office.P7.Core, 0.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Primo.Office.P7.Core&version=0.0.3
                    
Install Primo.Office.P7.Core as a Cake Addin
#tool nuget:?package=Primo.Office.P7.Core&version=0.0.3
                    
Install Primo.Office.P7.Core as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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