15,914,225 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 11426986 (Top 13 by date)
Member 11426986
13-Apr-21 6:59am
View
I use this method to inform the text field (123456789) and it returns me how the bar code should look. But when I try to beep, the code doesn't read.
Member 11426986
13-Apr-21 6:57am
View
I have an rdlc, where inside the rdlc there is a textbox with the code128 font. When I call rdlc with the reportviewer, I pass a text field as a parameter, and that parameter is what goes in the barcode. However, if I send "123456789", it will form the barcode, but I can't read it.
Member 11426986
20-Feb-20 7:41am
View
Okay. But I want to see the report in the report view, before it is sent to print. In short, I want to print what is being shown in the ReportViewer, and I want to pass a parameter.
Member 11426986
3-Oct-19 11:06am
View
The system imports all XML automatically, and works normally, until it reaches between 50 and 60 XML, approximately in the first minute after starting execution. If I import the rest of the manual, the problem is not displayed.
Member 11426986
3-Oct-19 10:09am
View
I am using debugging. And that's why I came here. In debugging, after 1 minute and XML import, the system stops. It's as if the debug point is gone, but the performance manager continues, and the system becomes inaccessible, as if I was still debugging.
Member 11426986
26-Sep-19 10:59am
View
I am using your code and two tasks, and added an attribute to differentiate which part of the code it will do. How do I check with a Timer when the task is over?
This is the click button event.
CancellationTokenSource newSource = new CancellationTokenSource();
CancellationTokenSource oldSource = Interlocked.Exchange(ref _cts, newSource);
if (oldSource != null)
{
oldSource.Cancel();
oldSource.Dispose();
}
Task.Run(() => Readtxt(newSource.Token, "CTE"), newSource.Token);
Task.Run(() => Readtxt(newSource.Token, "NFE"), newSource.Token);
Member 11426986
26-Sep-19 10:53am
View
Deleted
I am using your code and two tasks. How do I check with a Timer when the task is over?
This is the click button event.
CancellationTokenSource newSource = new CancellationTokenSource();
CancellationTokenSource oldSource = Interlocked.Exchange(ref _cts, newSource);
if (oldSource != null)
{
oldSource.Cancel();
oldSource.Dispose();
}
Task.Run(() => ExecutaLeitura(newSource.Token, "CTE"), newSource.Token);
Task.Run(() => ExecutaLeitura(newSource.Token, "NFE"), newSource.Token);
txtExecucaoPro.ForeColor = Color.FromArgb(0, 192, 0);
txtExecucaoPro.Text = "PROCESSO EM EXECUÇÃO";
Member 11426986
26-Sep-19 8:57am
View
I will try to do that. But it gives me a doubt. How can I see if this task is running?
Member 11426986
26-Sep-19 8:32am
View
In foreach it will fetch all the XML files from the directory you entered in the ccte variable. This will take the full path of each XML file and pass it to the class that will read the XML.
Sorry, there was an editing error.
FileInfo fi = new FileInfo (fileSystem);
folder = fi.FullName;
try
{
DirectXML dir = new DirectXML ();
dir.directXML (folder, "");
}
catch (Exception m)
{
registerLog (m.Message, folder);
}
Member 11426986
26-Sep-19 8:09am
View
No "DirectXML dir = new DirectXML ();
dir.direcionarXML(folder, ""); ", it will read the XML files and save the collected information to a database.
Member 11426986
26-Sep-19 8:09am
View
Deleted
No "DirectXML dir = new DirectXML ();
dir.direcionarXML(folder, ""); ", it will read the XML files and save the collected information to a database.
Member 11426986
26-Sep-19 7:36am
View
This is method Readtxt
void Readtxt()
{
string ccte = txtFolderCTE.Text;
string folder = null;
foreach (var fileSystem in Directory.GetFiles(ccte, "*.xml", SearchOption.AllDirectories))
{
FileInfo fi = new FileInfo(fileSystem);
caminho = fi.FullName;
try
{
DirectXML dir = new DirectXML();
dir.direcionarXML(folder, "");
}
catch (Exception m)
{
registerLog(m.Message, folder);
}
}
}
Member 11426986
18-Jun-19 9:57am
View
WINDOWS FORM
Show More