15,903,030 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 loai_maane (Top 66 by date)
loai_maane
6-Dec-18 5:15am
View
Thanks a lot Dave ,
I did not get any open source libraries to print the PDF with specific printing settings like Tray number and number of copies .
In my opinion now, I should create function contact with the printers it self and change the settings especially tray number then call that function before print the PDF.what is your suggestions?
My program it is windows Application (C#)
loai_maane
4-Dec-18 8:44am
View
thanks Dave ,i will check
loai_maane
4-Dec-18 0:17am
View
thank you Dave, any other option to print the PDF with out pop up acrobat reader ?
loai_maane
3-Dec-18 12:26pm
View
string Filepath = Path.Combine(exeFolder, @"Form.pdf");
ProcessStartInfo printProcessInfo = new ProcessStartInfo()
{
Verb = "print",
WindowStyle = ProcessWindowStyle.Hidden,
CreateNoWindow = true,
FileName = Filepath,
UseShellExecute = true
};
Process printPro = new Process();
printPro.StartInfo = printProcessInfo;
printPro.Start();
printPro.WaitForInputIdle();
Thread.Sleep(6000);
if (false == printPro.CloseMainWindow())
{
printPro.Kill();
}
loai_maane
3-Dec-18 12:25pm
View
dear Dave i hope you are fine.....
i create desktop app to save the report as pdf on hard drive ,and i printed successfully, but when i print, adobe reader pop up. i try a lot of method like killing the process still same issue, please help , i want to print the pdf with out pop up the adobe reader.i will but my code as new comment kindly check
loai_maane
3-Dec-18 10:58am
View
did you get any solution for you issue dear ?
loai_maane
28-Nov-18 10:26am
View
thanks a lot dave for your information
loai_maane
28-Nov-18 10:26am
View
Deleted
thanks a lot dave for your information
loai_maane
28-Nov-18 0:09am
View
thanks a lot dear Dave for your replay ,
so i think it is better to forget .net and do the job using win application . what is your opinion ?
and dear last question , how can i print the Temp PDF after rendering process.
loai_maane
27-Nov-18 16:13pm
View
guys actually, it is program to print medical form include 5 copies for each form ,the end user enter some data like employee id, doctor code ..... then press on print button 5 copies of the form will printed using printer connected to client PC .
loai_maane
27-Nov-18 11:49am
View
thanks Dave I will try , but how can I print the temp PDF and I want to print it 5 copies
loai_maane
27-Nov-18 11:27am
View
thanks guys , but dear Dave as Richard told render will set the value . any options guys please ?
loai_maane
27-Nov-18 4:11am
View
dear if i rendering as PDF,is my code should create PDF physically in Program file to print the generated PDF?
loai_maane
27-Nov-18 3:49am
View
hi dear ,
i am using asp.net.
i tried to print the report from the print button on report viewer it is OK the printed page was A4.but using the code the printed page was huge and printed on 4 papers
loai_maane
19-Feb-17 6:22am
View
Dear,
sorry today i try your solution it give error Cannot find table 0, i already create data table with name retired
loai_maane
19-Feb-17 6:03am
View
first line, i already create data table with same name retired
loai_maane
3-Jan-16 15:00pm
View
OriginalGriff,
I have one webapplication which works fine on my PC,currently i publish to server which has the database on SQL server 2012(i move the database also).now i face problem in the date format
on my PC the date format was dd/MM/yyyy but in server MM/dd/yyyy, so i got error in many places.i can not change the language for the sql server becuase it is include another database.I change Regional setting and set date Format to dd/MM/yyyy but still there is no solution, any sugestions??
loai_maane
30-Dec-15 4:20am
View
thank you OriginalGriff
loai_maane
23-Nov-15 15:59pm
View
Hello Sergey,
I have printed form, actually it is a medical form . now we fill it manually .
I want to fill this form programmatically using c#.net, there are a lot of ideas in my mind .
now I designed page to enter the data by the user then pass that data to a report I created like that form using report viewer . because there are two types of that form one A3 size and the other one A4 size , I created two reports ,so when print the reports we should use two paper trays one A3 and the other one A4.now if you print the first report the first tray while work dirctly ,the second report second tray should work ,how can i do it in c#?
loai_maane
9-Nov-15 6:39am
View
please any idea!!
loai_maane
18-Jun-15 16:44pm
View
for that reason i change the showupdown property for datetimepiker to true
loai_maane
18-Jun-15 15:25pm
View
i think the problem in the event it self , because when i change the day then the month just and add the data to the data base by pressing a button , then again come back to the datetimepiker the courser move to the year because i did not change the year before.
now i want way to change the focus on the day when i come back to the dtetimepiker.
loai_maane
18-Jun-15 15:19pm
View
dear i am creating program for user to enter data about employees.
my code very long ,but the important code about this issue is :
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
SendKeys.Send("{RIGHT}");
}
loai_maane
21-Jan-15 4:08am
View
Dear,
i have oracle database already on my PC,I downloaded ODAC1020221.exe
from oracle website its Oracle Data Access Components (ODAC) support widows XP and
the download includes:
Oracle Data Provider for .NET 1.x 10.2.0.2.20
Oracle Data Provider for .NET 2.0 10.2.0.2.20
up till now I installed the provider on my pc in folder on c drive.
actually, i found this subject
http://www.codeproject.com/Tips/436023/Setting-up-Oracle-Database-for-NET-development#xx4565693xx
but i am afraid from removing Oracle database PATH from environment variable
because i use oracle also here.
loai_maane
23-Dec-14 3:30am
View
hello dear,
yes i created table and i want to add columns .
loai_maane
23-Dec-14 3:26am
View
Unclosed quotation mark after the character string 'td['0'] varchar(50) default 0 NOT NULL'.
Incorrect syntax near 'td['0'] varchar(50) default 0 NOT NULL'.
this is the error
loai_maane
28-Jan-14 8:14am
View
i find the answer thnx Kornfeld, just put $otn_days into single quote
mysqli_query($connection,"INSERT INTO otn(e_no,grade,ccn_code,otn_days,otn_hrs) values($e_no,$grade,$ccn_code,'$otn_days',$otn_hrs) ");
loai_maane
28-Jan-14 8:13am
View
Deleted
i find the answer thnx Kornfeld, just put $otn_days into single quote
mysqli_query($connection,"INSERT INTO otn(e_no,grade,ccn_code,otn_days,otn_hrs) values($e_no,$grade,$ccn_code,'$otn_days',$otn_hrs) ");
loai_maane
28-Jan-14 7:55am
View
actually, i did not understand you now.but after debug one row inserted in the database
loai_maane
28-Jan-14 7:43am
View
dear Kornfeld, i use $result2 to check if the query insert row in the database or no, we can remove it no problem and the insert code is correct because one row added in my database when i press on submit but the date filed is 0000-00-00.
so the code is :
mysqli_query($connection,"INSERT INTO otn (e_no,grade,ccn_code,otn_days,otn_hrs) values($e_no,$grade,$ccn_code,$otn_days,$otn_hrs) ");
loai_maane
28-Jan-14 7:34am
View
and also i used date('Y-m-d', strtotime($_POST['date'])), but same thing the date filed
0000-00-00
loai_maane
28-Jan-14 7:32am
View
i know in mysql Date field is of format yyyy-mm-dd,but i checked the code separately and gave me correct format date like 2013-10-01.
loai_maane
28-Jan-14 7:30am
View
this is example :
e_no grade ccn_code otn_days otn_hrs
2393 07 270 0000-00-00 5
loai_maane
23-Jul-13 15:38pm
View
there is any code to do this
loai_maane
23-Jul-13 15:37pm
View
i finish my C# project but i want to run my project in specific time (such as 22:00:00)and close it in 23:00:00
loai_maane
4-Jul-13 2:37am
View
if i use sql server what i should to do if i want to use my database from any PC ??
loai_maane
4-Jul-13 2:31am
View
thnx prasad ,
if i use sql server what i should to do if i want to use my database from any PC ??
loai_maane
3-Jul-13 14:03pm
View
thnx very much Ron
loai_maane
3-Jul-13 13:13pm
View
no work no problem in any time
loai_maane
3-Jul-13 12:44pm
View
for your second part how can i do it ?? you have any examples please.
loai_maane
3-Jul-13 12:40pm
View
sometimes work no problem ,so what do you mean of not match???
loai_maane
3-Jul-13 12:39pm
View
the interval 100
sometimes work no problem ,but sometimes do not work
loai_maane
2-Jul-13 7:54am
View
ok the model is AC100
PROCESSOR : 400 MHz microprocessor
MEMORY : 4MB flash memory
-STORAGE:
• Fingerprint templates:1500
• Transaction :100000
-ENROLLMENT & VERIFICATION:
• Methods :Fingerprint (1:1, 1:N), Password
• Recommended fingerprint per user ID: 2
• Fingerprint placement :Any angle
there are two ports for the device :
1.RS232/485 Port (serial communication)
2.TCP/IP Port
it has The FingerTec BioBridge SDK 2.0.
loai_maane
2-Jul-13 7:29am
View
there are two port for the device :
1.RS232/485 Port (serial communication)
2.TCP/IP Port
loai_maane
2-Jul-13 7:24am
View
hello zoltan ,
i connect the finger print device to my PC using network cable so i choose TCP/IP as a way for connection
now i want to write code sing C# to take the finger print image of that device and store it in access database.at the same time that code compare between finger prints .
loai_maane
2-Jul-13 4:03am
View
you are right OriginalGriff. thanx a lot i will use your idea
loai_maane
2-Jul-13 0:55am
View
string zipfile="E:\\"+t+".accdb.gz";
loai_maane
1-Jul-13 15:00pm
View
yes it is work thnx a lot
loai_maane
1-Jul-13 14:50pm
View
sorry, another problem i try your way it is good
but when i Extract the file and open it,no data in that file (my tables not available )
loai_maane
1-Jul-13 14:27pm
View
open any winrar file you while see something called CRC ,The problem in this CRC
loai_maane
1-Jul-13 14:23pm
View
! E:\1-7-2013.accdb.gz: Unexpected end of archive
! E:\1-7-2013.accdb.gz: CRC failed in 1-7-2013.accdb. The file is corrupt
this error come when i try to do Extract file here , the file extension well .
loai_maane
26-Jun-13 1:34am
View
no
loai_maane
24-Jun-13 15:00pm
View
because when i finish my project, i want to print a report include that data in the access database
loai_maane
24-Jun-13 14:54pm
View
i mean ... in my database when i add data the id simply is 1,2,3....right??
but when i remove one row such as row number 2 the id be wrong so i try to write a code to make the id filed again 1,2,3...
i do not know how can explain, but i hope you understand me.
loai_maane
24-Jun-13 14:29pm
View
Ron you know in access database, the id field i want to sort it again .
this the code .
OleDbConnection h5 = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\\IJC Database.accdb");
OleDbConnection h6 = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\\users\\IJC Database.accdb");
OleDbCommand cmd5;
OleDbCommand cmd6;
h5.Open();
cmd5 = new OleDbCommand("select count(ID) from ijc"+";",h5);
int countID = (int)cmd5.ExecuteScalar();
h5.Close();
h6.Open();
for (int i = 1; i <= countID; i++)
{
cmd6 = new OleDbCommand("update ijc set ID='"+i+"';",h6);
cmd6.ExecuteNonQuery();
}
h6.Close();
but how can i move to the next id... you understand me ??
loai_maane
24-Jun-13 14:08pm
View
thnx:))
loai_maane
24-Jun-13 14:08pm
View
thnx Ron :))
loai_maane
19-Jun-13 16:17pm
View
use data from my database
loai_maane
19-Jun-13 15:31pm
View
no i use c#
loai_maane
19-Jun-13 5:38am
View
thnx:))
loai_maane
19-Jun-13 5:38am
View
thnx :))
loai_maane
7-May-13 8:35am
View
thnx
loai_maane
7-May-13 8:26am
View
physical device
thnx
loai_maane
7-May-13 5:25am
View
???????
loai_maane
7-May-13 5:23am
View
this project not for Master Degree :)
loai_maane
7-May-13 1:58am
View
hardware has numbers from 0-9
Show More