Category "c++sharp"

Save as pdf using ClosedXML

Does ClosedXML have any function that can be used to save an excel file as PDF? Currently i am using ClosedXML to create and populate the excel file and then u

Consuming web service with SSL (https) in C#

I want to consume an ssl secured web service in C#. The request looks like this: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelop

MAUI Blazor Android Sql Connection

I am experimenting with Maui Blazor. I want to connect my application with an SQL server database. Therefore I used a simple Sql Connection String. When I test

How to strip namespaces from Xml Document

I am having some trouble with removing namespaces from a document in order for a proprietary Parse() function to work properly. I am receiving an XML string tha

IDbAsyncEnumerable not implemented

I am trying to make a FakeDbContext with a FakeDbSet for unit testing. But I get the following error (see below). I am extending DbSet so normally IDbAsyncEnum

StackExchange.Redis: Get the count of channel subscriptions (i.e. PUBSUB NUMSUB)

is there a way to get the number of channel subscriptions to a specific Redis channel through the StackExchange.Redis library? When interacting with Redis direc

Add Items To a existing List In a dictionary

I have a dictionary as below var dicAclWithCommonDsEffectivity = new Dictionary<string, List<int>>(); I have a list as below var dsList=new Lis

Searching in datagridview using c#

After loading a table in datagridview I'm generating a combobox's items from the datagrid column headers. From the combobox I am selecting the column and I have

Support Vector Machine library for C# [closed]

Is there any Support Vector Machine library already implemented which I could use in my C# projects?

How to acess the appsettings in blazor webassembly

I currentying trying to save the api url in an appsettings. However, the configuration.Propertiers seems to be empty. I am not sure how to get the setting. in p

How do I round the corners of an iTextSharp table border?

I want to make a round rectangle in itextsharp. Here is the output I have now without rounding: and here is my code that processes that output: pdftbl = new

How to exclude property from Json Serialization

I have a DTO class which I Serialize Json.Serialize(MyClass) How can I exclude a public property of it? (It has to be public, as I use it in my code somewhe

C#, how to update particular Cell in an Excel file

I have created a windows application in C# and I am using excel as a temporary database. I am able to read in the excel data, but I have no idea how to update

How to run XUnit test using data from a CSV file

Is there a way to run a data driven XUnit test using a CSV file as the data source? I've tried Cavity.Data.XUnit, but it's no longer compatible with the newest

Regex to replace all password with ***

I have the following json: Data: {"Account":"d\\adm","Password":"cWExZjEiMTM="},"SqlServer":{"InstanceName":"","MachineName":"MyMachine","Port":null} I would

Get sent message in Outlook Addin

I am facing some problems trying to get the sent message from an Outlook plugin. In onItemSend event, I open a dialog where it shows some fields, with message

How can I pass parameters to an AutoMapper Profile in ABP?

I need to customize the way MyAutoMapper profile maps my objects to DTOs. From one of my ApplicationServices, I use an ObjectMapper for a relatively simple mapp

C# led panel controlling over ethernet with native dll

Hy, I had bought a "Huidu HD-E40" led panel a few days ago and the company sent me a .dll file. (I mean, it wasnt written in .Net). My question was the followi

WCF + Xml-Rpc don't work

I have a classic WCF webservice. Few weeks ago, in order to answer to a client demand, I added Rest management to my webservice. But, at the beginning of the w

"Unable to connect to the remote server" Error

I'm trying to send an email from my website. this is my code: public string SendEmail() { string sMessage; SmtpClient smtpClient = new SmtpClient(