# Scripts, SQL, .NET Framework

**URL:** https://forum.tatsoft.com/c/scripts-sql-net-framework/6.md

[Latest](https://forum.tatsoft.com/latest.md) · [Categories](https://forum.tatsoft.com/categories.md) · [Tags](https://forum.tatsoft.com/tags.md)

---

## [About the Scripts, SQL, .NET Framework category](https://forum.tatsoft.com/t/about-the-scripts-sql-net-framework-category/20)

<div class="topic-metadata">

**Author:** [@tatsoft](https://forum.tatsoft.com/u/tatsoft)\
**Replies:** 0\
**Last updated:** [October 26, 2020, 3:14pm UTC](https://forum.tatsoft.com/t/about-the-scripts-sql-net-framework-category/20 "2020-10-26T15:14:19Z")

</div>

Questions, insights, comments, examples, around application scripts. usign C#, VB, Python or JavaScript, SQL database connections and queries and .NET Framework.

---

## [How do I share using directives and navigate script code across a whole solution?](https://forum.tatsoft.com/t/how-do-i-share-using-directives-and-navigate-script-code-across-a-whole-solution/682)

<div class="topic-metadata">

**Author:** [@Felipe\_support](https://forum.tatsoft.com/u/Felipe_support)\
**Replies:** 1\
**Last updated:** [October 20, 2026, 5:45pm UTC](https://forum.tatsoft.com/t/how-do-i-share-using-directives-and-navigate-script-code-across-a-whole-solution/682 "2026-10-20T17:45:51Z")

</div>

In FrameworX each script has its own Namespace Declarations list, and you can’t write using (C#) or Imports (VB.NET) directly in the code. When a solution grows to dozens of Script Tasks, Script Classes and display code-…

---

## [Is it possible to access history data from the scripts?](https://forum.tatsoft.com/t/is-it-possible-to-access-history-data-from-the-scripts/600)

<div class="topic-metadata">

**Author:** [@Abel\_Dashboards](https://forum.tatsoft.com/u/Abel_Dashboards)\
**Replies:** 2\
**Last updated:** [August 14, 2025, 7:18pm UTC](https://forum.tatsoft.com/t/is-it-possible-to-access-history-data-from-the-scripts/600 "2025-08-14T19:18:31Z")

</div>

Hi! Is it possible to access history data in tags from scripts? This to create calculations such as aggregations (e.g. previous day average production rate) that run on a periodic basis Thanks Abel

---

## [How to export a table from a SQLite database to a excel file](https://forum.tatsoft.com/t/how-to-export-a-table-from-a-sqlite-database-to-a-excel-file/584)

<div class="topic-metadata">

**Author:** [@MrDaolio](https://forum.tatsoft.com/u/MrDaolio)\
**Replies:** 1\
**Last updated:** [June 10, 2025, 6:21pm UTC](https://forum.tatsoft.com/t/how-to-export-a-table-from-a-sqlite-database-to-a-excel-file/584 "2025-06-10T18:21:22Z")

</div>

Hello experts, So i’ve created a new dataset called “TesteDB” And inside this dataset i’ve created a table wich i populated with some data I want to export this data into an excel file, how can i write a script …

---

## ["The Type or namespace name 'Simulation\_1' could not be found (are you missing a using directive](https://forum.tatsoft.com/t/the-type-or-namespace-name-simulation-1-could-not-be-found-are-you-missing-a-using-directive/580)

<div class="topic-metadata">

**Author:** [@Abel\_Dashboards](https://forum.tatsoft.com/u/Abel_Dashboards)\
**Replies:** 1\
**Last updated:** [May 22, 2025, 6:38pm UTC](https://forum.tatsoft.com/t/the-type-or-namespace-name-simulation-1-could-not-be-found-are-you-missing-a-using-directive/580 "2025-05-22T18:38:50Z")

</div>

Hi all, I’m trying to create a very simple task to run a script. I’m getting the error “The Type or namespace name ‘Simulation\_1’ could not be found (are you missing a using directive…”. The script in Classes has a gree…

---

## [Error executing method from dll](https://forum.tatsoft.com/t/error-executing-method-from-dll/577)

<div class="topic-metadata">

**Author:** [@Javier](https://forum.tatsoft.com/u/Javier)\
**Replies:** 4\
**Last updated:** [May 20, 2025, 5:34pm UTC](https://forum.tatsoft.com/t/error-executing-method-from-dll/577 "2025-05-20T17:34:56Z")

</div>

I am trying to execute a dll Method, compiled in visual studio, from FranworkX, but I get the following error: Task\_Revisa\_Listas.UserControl1 SetTask ; public async Task Main() { bool Result = false; try{ SetTask…

---

## [NATS Protocol Communication on Factory studio](https://forum.tatsoft.com/t/nats-protocol-communication-on-factory-studio/575)

<div class="topic-metadata">

**Author:** [@Thanos](https://forum.tatsoft.com/u/Thanos)\
**Replies:** 1\
**Last updated:** [May 13, 2025, 7:34pm UTC](https://forum.tatsoft.com/t/nats-protocol-communication-on-factory-studio/575 "2025-05-13T19:34:56Z")

</div>

Dear Experts. I want to build Factorystudio like a NATS Client. Is that possible? If yes, Please send me the example or document. Many Thank

---

## [SQL commands in version 10](https://forum.tatsoft.com/t/sql-commands-in-version-10/567)

<div class="topic-metadata">

**Author:** [@Javier](https://forum.tatsoft.com/u/Javier)\
**Replies:** 7\
**Last updated:** [April 8, 2025, 7:47pm UTC](https://forum.tatsoft.com/t/sql-commands-in-version-10/567 "2025-04-08T19:47:26Z")

</div>

I’m migrating a project from version 9.2 to version 10. I am presenting the following errors in the Scripts, how can I fix them ? Attached image of the errors

---

## [Returning a Server domain template tag from a Client function call](https://forum.tatsoft.com/t/returning-a-server-domain-template-tag-from-a-client-function-call/564)

<div class="topic-metadata">

**Author:** [@GregS](https://forum.tatsoft.com/u/GregS)\
**Replies:** 2\
**Last updated:** [April 6, 2025, 10:48pm UTC](https://forum.tatsoft.com/t/returning-a-server-domain-template-tag-from-a-client-function-call/564 "2025-04-06T22:48:24Z")

</div>

Hi. We are trying to understand how to call a Server domain function from a portable client screen and return the contents of a Server domain template tag populated by the function call. I had thought this would not be…

---

## [Script Insert to SQL Server?](https://forum.tatsoft.com/t/script-insert-to-sql-server/501)

<div class="topic-metadata">

**Author:** [@captain](https://forum.tatsoft.com/u/captain)\
**Replies:** 6\
**Last updated:** [March 18, 2025, 8:12pm UTC](https://forum.tatsoft.com/t/script-insert-to-sql-server/501 "2025-03-18T20:12:13Z")

</div>

How to write script insert to sql server when cilck button

---

## [Image Processing with Fatorystudio](https://forum.tatsoft.com/t/image-processing-with-fatorystudio/552)

<div class="topic-metadata">

**Author:** [@Thanos](https://forum.tatsoft.com/u/Thanos)\
**Replies:** 1\
**Last updated:** [February 6, 2025, 5:39pm UTC](https://forum.tatsoft.com/t/image-processing-with-fatorystudio/552 "2025-02-06T17:39:09Z")

</div>

Dear Export. In my application, I want to integrated Image Processing in Factory studio. Is that Possible or any better solution for me? Many Thank

---

## [Dataset query support](https://forum.tatsoft.com/t/dataset-query-support/550)

<div class="topic-metadata">

**Author:** [@Thanos](https://forum.tatsoft.com/u/Thanos)\
**Replies:** 1\
**Last updated:** [January 18, 2025, 6:42am UTC](https://forum.tatsoft.com/t/dataset-query-support/550 "2025-01-18T06:42:58Z")

</div>

Dear Expert. In my project I create Query object in Dataset ( Connect to SQLLite). I want to use Query for inserting database into SQLlite. I used Query in Script task. My problem is the query was always 2 times. I …

---

## [Html5 display problem](https://forum.tatsoft.com/t/html5-display-problem/544)

<div class="topic-metadata">

**Author:** [@Thanos](https://forum.tatsoft.com/u/Thanos)\
**Replies:** 3\
**Last updated:** [December 30, 2024, 2:39pm UTC](https://forum.tatsoft.com/t/html5-display-problem/544 "2024-12-30T14:39:03Z")

</div>

Dear expert i’m deploy a webserver project and face some problem in Html5 display: Can’t execute expression for text output property of text label and text block object. Example: if I left into text output expressio…

---

## [WEB API and SCRIPT IN FACTORYSTUDIO](https://forum.tatsoft.com/t/web-api-and-script-in-factorystudio/539)

<div class="topic-metadata">

**Author:** [@Thanos](https://forum.tatsoft.com/u/Thanos)\
**Replies:** 7\
**Last updated:** [December 23, 2024, 2:40pm UTC](https://forum.tatsoft.com/t/web-api-and-script-in-factorystudio/539 "2024-12-23T14:40:55Z")

</div>

Dear Experts Good new week to all of guys. I’m using factory studio factory to build my web platform application. I have some unknown issues please help me to clear. I see that JavaScript is only supported on code b…

---

## [Starting project with TStartup.exe](https://forum.tatsoft.com/t/starting-project-with-tstartup-exe/499)

<div class="topic-metadata">

**Author:** [@GregS](https://forum.tatsoft.com/u/GregS)\
**Replies:** 1\
**Last updated:** [August 5, 2024, 12:37pm UTC](https://forum.tatsoft.com/t/starting-project-with-tstartup-exe/499 "2024-08-05T12:37:38Z")

</div>

Hi. I am experimenting with starting an application from a batch file using TStartup.exe. All works pretty well, except that on one PC I need to start the project enforcing the Force32 setting. This is set in the proje…

---

## [Export data into excel on webclient](https://forum.tatsoft.com/t/export-data-into-excel-on-webclient/485)

<div class="topic-metadata">

**Author:** [@Thanos](https://forum.tatsoft.com/u/Thanos)\
**Replies:** 5\
**Last updated:** [July 17, 2024, 5:30pm UTC](https://forum.tatsoft.com/t/export-data-into-excel-on-webclient/485 "2024-07-17T17:30:32Z")

</div>

Dear Expert. I’m building Web client project. In which, I need export some data into excel file from web client. I don’t know how can I do that because. Code behind web client display is java. I don’t know how impor…

---

## [Opening and closing displays form within VB .NET](https://forum.tatsoft.com/t/opening-and-closing-displays-form-within-vb-net/384)

<div class="topic-metadata">

**Author:** [@GregS](https://forum.tatsoft.com/u/GregS)\
**Replies:** 6\
**Last updated:** [July 15, 2024, 12:54pm UTC](https://forum.tatsoft.com/t/opening-and-closing-displays-form-within-vb-net/384 "2024-07-15T12:54:18Z")

</div>

Hi all. I’m trying to open and close displays from within VB .NET subroutines without success. Whenever I try the @Display or @Client methods shown in the documentation I receive a compilation error: Also … the @Dis…

---

## [Reading the fields of a Tag](https://forum.tatsoft.com/t/reading-the-fields-of-a-tag/492)

<div class="topic-metadata">

**Author:** [@andyb](https://forum.tatsoft.com/u/andyb)\
**Replies:** 0\
**Last updated:** [July 7, 2024, 3:36am UTC](https://forum.tatsoft.com/t/reading-the-fields-of-a-tag/492 "2024-07-07T03:36:27Z")

</div>

I have a requirement where I need to read some of the properties of a tag and not just its value. As I expect to have many of these I don’t want to do this: double min = @Tag.MyTag1.Min; // and others I can rea…

---

## [Hello good afternoon How can I create an Excel spreadsheet with the collected values, with a C# script?](https://forum.tatsoft.com/t/hello-good-afternoon-how-can-i-create-an-excel-spreadsheet-with-the-collected-values-with-a-c-script/489)

<div class="topic-metadata">

**Author:** [@Thaylor](https://forum.tatsoft.com/u/Thaylor)\
**Replies:** 5\
**Last updated:** [July 5, 2024, 5:34pm UTC](https://forum.tatsoft.com/t/hello-good-afternoon-how-can-i-create-an-excel-spreadsheet-with-the-collected-values-with-a-c-script/489 "2024-07-05T17:34:05Z")

</div>

Hello good afternoon How can I create an Excel spreadsheet with the collected values, with a C# script?

---

## [Good afternoon, I would like to know how to import a library into C#, I need a library to export or convert a csv file to xlsx. Would you help me?](https://forum.tatsoft.com/t/good-afternoon-i-would-like-to-know-how-to-import-a-library-into-c-i-need-a-library-to-export-or-convert-a-csv-file-to-xlsx-would-you-help-me/490)

<div class="topic-metadata">

**Author:** [@Thaylor](https://forum.tatsoft.com/u/Thaylor)\
**Replies:** 2\
**Last updated:** [July 1, 2024, 1:24pm UTC](https://forum.tatsoft.com/t/good-afternoon-i-would-like-to-know-how-to-import-a-library-into-c-i-need-a-library-to-export-or-convert-a-csv-file-to-xlsx-would-you-help-me/490 "2024-07-01T13:24:47Z")

</div>

Good afternoon, I would like to know how to import a library into C#, I need a library to export or convert a csv file to xlsx. Would you help me?

---

## [Trend Object in code behind of HTML5 Display](https://forum.tatsoft.com/t/trend-object-in-code-behind-of-html5-display/481)

<div class="topic-metadata">

**Author:** [@Manh](https://forum.tatsoft.com/u/Manh)\
**Replies:** 4\
**Last updated:** [May 8, 2024, 6:13am UTC](https://forum.tatsoft.com/t/trend-object-in-code-behind-of-html5-display/481 "2024-05-08T06:13:50Z")

</div>

Dear Expert In my project, I created the Html5 Display. Inside it, I use Trend Object. How can I use this Trend Object’s Properties Javascript code behind ? Thank much.

---

## [Get files and send them to excel](https://forum.tatsoft.com/t/get-files-and-send-them-to-excel/468)

<div class="topic-metadata">

**Author:** [@Thaylor](https://forum.tatsoft.com/u/Thaylor)\
**Replies:** 1\
**Last updated:** [May 7, 2024, 8:19pm UTC](https://forum.tatsoft.com/t/get-files-and-send-them-to-excel/468 "2024-05-07T20:19:58Z")

</div>

Hello, good morning. How are you? I would like, while my application is running, to create an excel file capturing all the values ​​that are happening, such as “Speed”, “Temperature”, every second it is updated, I tried…

---

## [Factory Studio on Web Client](https://forum.tatsoft.com/t/factory-studio-on-web-client/474)

<div class="topic-metadata">

**Author:** [@Thanos](https://forum.tatsoft.com/u/Thanos)\
**Replies:** 1\
**Last updated:** [May 7, 2024, 2:18pm UTC](https://forum.tatsoft.com/t/factory-studio-on-web-client/474 "2024-05-07T14:18:03Z")

</div>

Dear Expert I’m deploying Factory studio project on Web Client. I did following the maunal Runtime Application Run Twebserver Tool Open path on Webserver =\> But the error happened. Please see picture. How can I…

---

## [Create Excel document with DocumentFormat.OpenXml gives 'DocumentFormat' could not be found](https://forum.tatsoft.com/t/create-excel-document-with-documentformat-openxml-gives-documentformat-could-not-be-found/464)

<div class="topic-metadata">

**Author:** [@Rafles](https://forum.tatsoft.com/u/Rafles)\
**Replies:** 2\
**Last updated:** [April 23, 2024, 4:18pm UTC](https://forum.tatsoft.com/t/create-excel-document-with-documentformat-openxml-gives-documentformat-could-not-be-found/464 "2024-04-23T16:18:33Z")

</div>

I am trying to create an excel file including graphs from C# script. For that I try to use the DocumentFormat.OpenXml library I import it and I can see that the import was done correctly but when I try to compile the …

---

## [Send data set directly to power bi](https://forum.tatsoft.com/t/send-data-set-directly-to-power-bi/467)

<div class="topic-metadata">

**Author:** [@Thaylor](https://forum.tatsoft.com/u/Thaylor)\
**Replies:** 1\
**Last updated:** [April 23, 2024, 3:10pm UTC](https://forum.tatsoft.com/t/send-data-set-directly-to-power-bi/467 "2024-04-23T15:10:24Z")

</div>

Hello good afternoon all right? I would like to know if there is a possibility of taking the data from my supervisor and sending it to a power bi? From CLP to Power Bi?

---

## [How to download Supervisorio to your cell phone or tablet after doing so? And what language do you use? Could you give me an explanation?](https://forum.tatsoft.com/t/how-to-download-supervisorio-to-your-cell-phone-or-tablet-after-doing-so-and-what-language-do-you-use-could-you-give-me-an-explanation/444)

<div class="topic-metadata">

**Author:** [@Thaylor](https://forum.tatsoft.com/u/Thaylor)\
**Replies:** 12\
**Last updated:** [April 15, 2024, 1:51pm UTC](https://forum.tatsoft.com/t/how-to-download-supervisorio-to-your-cell-phone-or-tablet-after-doing-so-and-what-language-do-you-use-could-you-give-me-an-explanation/444 "2024-04-15T13:51:21Z")

</div>

How to download Supervisorio to your cell phone or tablet after doing so? And what language do you use? Could you give me an explanation?

---

## [Property Watch for Client domain tags](https://forum.tatsoft.com/t/property-watch-for-client-domain-tags/463)

<div class="topic-metadata">

**Author:** [@GregS](https://forum.tatsoft.com/u/GregS)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 9:27pm UTC](https://forum.tatsoft.com/t/property-watch-for-client-domain-tags/463 "2024-04-02T21:27:28Z")

</div>

Hi. I am developing an application to run standalone on a PC, but am required to use both Client and Server domain tags. This is to overcome sychronisation issues between screen keyboard data entry (Client domain) and t…

---

## [Project not running following license upgrade](https://forum.tatsoft.com/t/project-not-running-following-license-upgrade/462)

<div class="topic-metadata">

**Author:** [@GregS](https://forum.tatsoft.com/u/GregS)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 9:22pm UTC](https://forum.tatsoft.com/t/project-not-running-following-license-upgrade/462 "2024-04-02T21:22:20Z")

</div>

Hi. I’ve just upgrade my EdgeHMI hardkey license to FrameworX in the hope of overcoming an EdgeHMI limitation that was preventing further development on a project. However now, when I try to run the project, only Prope…

---

## [Documentation of built-in methods](https://forum.tatsoft.com/t/documentation-of-built-in-methods/448)

<div class="topic-metadata">

**Author:** [@gdgilmore](https://forum.tatsoft.com/u/gdgilmore)\
**Replies:** 1\
**Last updated:** [January 29, 2024, 5:58pm UTC](https://forum.tatsoft.com/t/documentation-of-built-in-methods/448 "2024-01-29T17:58:10Z")

</div>

Hello, I was looking at the HistorianToCSV.tproj project and noticed the export script uses @Historian.Table.Table2.SaveToTextFile to export the file. Is this method built into FactoryStudio or is this a script somewher…

---

## [For mobile configuration, is it possible only on Ios? Or is there a possibility of adaptation for Android?](https://forum.tatsoft.com/t/for-mobile-configuration-is-it-possible-only-on-ios-or-is-there-a-possibility-of-adaptation-for-android/445)

<div class="topic-metadata">

**Author:** [@Thaylor](https://forum.tatsoft.com/u/Thaylor)\
**Replies:** 1\
**Last updated:** [January 22, 2024, 1:04pm UTC](https://forum.tatsoft.com/t/for-mobile-configuration-is-it-possible-only-on-ios-or-is-there-a-possibility-of-adaptation-for-android/445 "2024-01-22T13:04:25Z")

</div>

For mobile configuration, is it possible only on Ios? Or is there a possibility of adaptation for Android?

[Next page](https://forum.tatsoft.com/c/scripts-sql-net-framework/6.md?page=1)
