Posts by Felipe S • 821 points
43 posts
-
0
votes1
answer263
viewsA: Link does not exist or invalid, Facebook ADS API / creating Javascript ad
I found the problem, in the Creative parameter was missing one more value, so: FB.api(act_xxxx '/ads', 'POST', { name: 'TESTEFixo', status: 'PAUSED', adset_id: xxxxx, creative: { object_story_spec:…
-
0
votes1
answer263
viewsQ: Link does not exist or invalid, Facebook ADS API / creating Javascript ad
I’m creating the creative ad like this: FB.api(act_xxxxxxx + '/adcreatives', 'POST', { name: vlName, title: vlTitle, body: vlBody, image_url: vlImage_url, object_id: vlObject_id }, function…
-
1
votes1
answer89
viewsQ: How to use Registerstartupscript one after the other?
It is possible to use ScriptManager.RegisterStartupScript one after the other? 'Cause I need to use one like tabChange(); and another to display the modal, but in case it only executes the first.…
-
5
votes3
answers10165
views -
1
votes4
answers1276
views -
0
votes1
answer135
viewsA: Error inserting image loop in report pdf Reports.dll . net
To make this work, you need to convert the image to a memoryStream Follows the code: Dim Chave = "858300000009330003101607570100361164044015053000" Dim barcode As New BarcodeLib.Barcode() Dim img As…
-
0
votes1
answer135
viewsQ: Error inserting image loop in report pdf Reports.dll . net
I have a while that will repeat 3 times an insertion of a barcode but I am using lib Reports.dll to create the report in pdf. This lib only accepts images saved in some directory (as far as I know),…
-
7
votes2
answers1242
viewsQ: How to multiply an "X" character as many times as you want?
Is there a method that multiplies an "X" character as many times as I want? example: I have the character "P" P x 5 = "PPPPP" Is there any ready method in . Net?…
-
0
votes1
answer37
viewsA: Nothing value in a query to an xml tag using Linq . net
You need to create a variable with the namespace and then concatenate it together with the search tag: Dim xmlBase As String = retorno.OuterXml Dim xXml As XDocument = XDocument.Parse(xmlBase) Dim…
-
0
votes1
answer37
viewsQ: Nothing value in a query to an xml tag using Linq . net
I have the following xml: <ns1:TRetLote_GNRE xmlns="http://www.gnre.pe.gov.br" xmlns:ns1="http://www.gnre.pe.gov.br"> <ns1:ambiente>1</ns1:ambiente> <ns1:situacaoRecepcao>…
-
0
votes1
answer68
viewsQ: Linq XML problems using namespace . net
I am using a namespace at the moment I create my xml, but xmlns is also appearing in the tag below the root, this is hurting me, how can I make 'xmlns' get apernas in the root tag (Tlote_gnre)?…
-
1
votes0
answers223
viewsQ: Element Statement 'env:Envelope' Not found XML SOAP
I am trying to consume a WS from the GNRE Mill, but in a UF query it returns the following validation error: Cannot find the declaration of element 'env:Envelope' Follows the XML: <env:Envelope…
-
1
votes1
answer146
viewsQ: How to pass more than one argument using Process + Openssl
Using the following code I pass a certain argument, then I need to pass a password that Openssl requests, but how do I do that? I tried the StandardInput but I received an exception: Additional…
-
4
votes3
answers4420
viewsQ: Error when signing a SHA256 Hash using Digital Certificate
Is returning error from Invalid algorithm Specified, when it will be signed, how to proceed? Dim data = Encoding.UTF8.GetBytes(Me.txtCNPJEmpresa.Text + Me.txtCNPJSoftwareHouse.Text) Dim csp As…
-
1
votes1
answer1045
views -
0
votes1
answer522
viewsQ: How to limit the number of lines after ordering the Vb.net/C#datatable
How do I limit the number of rows on a datagrid after Defaultview.Sort Follows the code: da = New OleDbDataAdapter(MySQL, Conexao) dt = New DataTable("Pedidos") da.Fill(dt) dt.DefaultView.Sort =…
-
0
votes2
answers449
viewsQ: How to expedite VB.net database searches / Access97
Use a query searching in 3 different tables, returning this query attribute in a Datatable that will fill a Datagridview. The problem is that the search itself, this a little time, I used the TOP as…
-
1
votes1
answer1332
viewsQ: How to Reference a DLL using <Dllimport> and a variable in the path?
I’m having a problem at the moment of referencing a dll using the <DllImport>, because in the place where I put the dll path <DllImport("C:\MinhaDll.dll")>, i would like to use a…
-
3
votes1
answer3145
views -
0
votes0
answers157
viewsQ: How to use INSERT INTO (Currency Value) + SELECT (String Value) SQL DB Access
I’m trying to insert some data into a format column Currency, but the data is String. I tried to make the conversion using the Convert(Dados_String, Currency), but it didn’t work either. Follow the…
-
2
votes3
answers2384
viewsQ: Rejection Nfse SP XML data signature Differs from Calculated SHA1 VB.net
I am signing the following string: 339575410000100000000000120150413NI0000000000000500000000002502917N207293716000260 Using the following code: ' Obtem o certificado Dim CertificadoDig As…
-
1
votes1
answer574
viewsQ: How to use Reference in an XML signature?
Doubts about System.Security.Cryptography.Xml.Reference: What exactly is it for? How should I use Reference? What to assign to it? I need to use this in signing an XML Pq? And how to use? What to do…
-
2
votes1
answer500
viewsQ: Error Signing XML, URI Invalid VB.NET
I have this code to sign an XML, because right now it asks for a URI, I know it’s a namespace that points to some site, but when I assign the URL, it gives an exception error. ' Cria a referencia…
-
3
votes1
answer1080
viewsQ: Error sending Pedidoenviorps XML to Webservice da Prefeitura São Paulo NFS-e
I am getting the following error return from Webservice when I try to send XML <?xml version="1.0" encoding="UTF-8" ?> <RetornoEnvioRPS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"…
-
1
votes1
answer703
viewsA: How to consume Mayor’s Webservices for NFS-e Error "'Anonymous' client" VB.NET
Making a Custom Binding as follows, I was able to consume WS and get the return using the following code: Dim Certificado As X509Certificate2 Dim WS As WebServiceNFSE_TESTE.LoteNFeSoapClient Dim…
-
2
votes1
answer703
viewsQ: How to consume Mayor’s Webservices for NFS-e Error "'Anonymous' client" VB.NET
I am developing a project that will send Xmls to the WS of the IRS, I made the reference using the following URL: https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx But when it passes the Test…
-
2
votes0
answers1739
viewsQ: How to Develop a Remote Access
I would like to develop a system that could connect a machine to another machine and give me full control of this 2°machine, Ex: Team Viewer, Ammy Admin, Log me In. I would not like to do anything…
-
0
votes2
answers2942
viewsA: How do I get the Server time or current time of day and switch to the system via code?
Code in VB.NET Source: https://stackoverflow.com/questions/1193955/how-to-query-an-ntp-server-using-c/12150289#12150289 Public Shared Function GetNetworkTime() As DateTime 'Servidor nacional para…
-
0
votes2
answers2942
viewsQ: How do I get the Server time or current time of day and switch to the system via code?
I need to update an O.S system with the time of another micro, if this other micro would be a server. I would like to do this via code. Another method that would also help would be to take the right…
-
5
votes2
answers1527
views -
2
votes1
answer3519
viewsQ: How do I show and select one of the digital certificates on my computer
In my desktop I have some certificates and I need to select one of them, I would like to know via VN.Net or C# code how to appear a list and I choose the digital certificate I need, without having…
-
0
votes1
answer116
viewsA: Error while trying to get the value in an XML section, in VB.NET
The copilot was understanding that "Document" is only an object but was giving error in .value, to settle I did the following Dim document as XDocument = XDocument.Load("C:\MinhaXML.xml") Thus my…
-
1
votes1
answer116
viewsQ: Error while trying to get the value in an XML section, in VB.NET
The error happens right when it passes in the first element "Demi". XML: <ide> <cUF>11</cUF> <cNF>855305</cNF> <mod>59</mod>…
-
5
votes1
answer1258
views -
1
votes1
answer1063
viewsQ: How to make a filter using LIKE in int type fields in a Dataview?
I’m using the code below to make a filter on my DataGridView, but when I filter using the like in a field of the kind int, I get the following error: Cannot perform 'Like' operation on System.Int32…
-
1
votes1
answer302
viewsQ: How do I generate an automatic IP (DHCP) in VB.NET
Good afternoon, I would like to know how I can be generating an automatic IP (DHCP) in VB.NET and if you need to generate Mascara, Gateway and automatic DNS as well? Or in this case to use Automatic…
-
1
votes1
answer131
viewsA: See changes (delete) on grid Vb.net
Use Fill to fill your datagrid after deleting your DB data.
-
3
votes1
answer561
viewsQ: How do I call a . dll and declare functions in C++. Net
I’m migrating a project to C++, but I’m having trouble calling . dll This is code: int LoadDLL (void) { char handle; //! Carrega a dll ... handle = LoadLibrary(L"c:\windows\system\minhadll.dll");…
-
4
votes1
answer523
viewsQ: Is it possible to use pointers in VB.NET?
Is it possible to use VB.NET pointers? If so, how do they work? An example in C++: CSR = ConfigurarInterfaceDeRede(randInt(0,999999),CodAtivacaoSAT,(char*)xml); int a; int *p; p = &a; How would…
-
2
votes2
answers756
viewsQ: Possible SHA256 return 128bytes after signing?
I’m using the following code to get my certificate and sign my Cnpjs, but I’m using the SHA256 algorithm, but it’s returning 128bytes. Can anyone tell me what’s wrong? Follows the Code: Dim data =…
-
2
votes0
answers831
viewsQ: How do I digitally sign a . pem file using the SHA256 algorithm
I have a. pem file converted from a A3(.pfx) digital certificate I need to sign 2 Cnpjs concatenated using this file. pem, which contains 2 Keys 1 Public and another Private, I need to use the…
-
3
votes1
answer157
viewsQ: How do I use Openssl functions in VB.Net?
Is there a DLL that I can use the functions of Openssl, to work with signatures, PEM, etc.? How to work with it?
-
6
votes1
answer4038
viewsQ: How do I convert a . PFX certificate to . PEM?
I exported a file .pfx of my A3 certificate. How do I convert it to .pem. In VB.Net if possible.