15,895,799 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 azteca_04 (Top 15 by date)
azteca_04
9-Jan-15 16:01pm
View
Tks for the replys and help, sorry for the delay been busy,
i try saving onto an array the result from each regular combobox and it does do the sum currectly only problem is that i have combobox to actomatacly start at index 0 but that would give me an automatic sum and i dont want that.
switch (comboBox5.SelectedIndex)
{
case 0:
cntbth[0] = 10;
break;
case 1:
cntbth[0] = 5;
break;
case 2:
cntbth[0] = 0;
break;
}
label13.Text = cntbth.Sum().ToString();
azteca_04
19-Jun-14 17:09pm
View
Sorry, you right i forgot to put the code
azteca_04
24-Jan-13 18:32pm
View
i get this error: File format is not valid.
azteca_04
24-Jan-13 0:10am
View
thanks for the response, but is there a funtion or class that does this? since i would be pulling the rtf from mysql and trying to displayed it in richtextbox and crystalreport
azteca_04
27-Dec-12 11:22am
View
it not what im looking for, in my project i have the application and the setup (2 projects in one) and it works fine, but when i install it does not install the crystalreports, (what im saying is that the application runs fine and everything but when i click to see the report a get a message that i dont have the crystal report isntall)
and i want to install same time as my application
azteca_04
25-Dec-12 15:43pm
View
Hi, the solotion you have me, it does work for part of it, since from form1 i open form2 but from form2 i open form3 and i have it return to form1 after its down but with the solution it does not work it says something like cant have 1 for contruct or something like that, any ideas??
thanks again
azteca_04
21-Dec-12 18:17pm
View
Thank you i would check it as soon as i get home, thanks for the quick reply
azteca_04
21-Dec-12 17:44pm
View
Yes can you give me an example please
azteca_04
12-Dec-12 17:05pm
View
Thks, this works for now, i would look to see if instead of actualy downloading the file i can open it and view it instead,
thanks a lot
azteca_04
12-Dec-12 16:45pm
View
any code as to how would this be done?? i do have the credential and directory i just need how would de conextion and how would the .pdf would be open from the server?
azteca_04
12-Dec-12 16:33pm
View
The File is in another location, other city and i upload the file via C# to FTP, so, how would i go from doing the credentials to open the file??
thanks for the quick replies
azteca_04
21-Nov-12 12:42pm
View
When i try to open the crystalreport to view it. it ask me for the user id and password, which i type and its says it cannot log in (user & password are correct)
azteca_04
21-Nov-12 12:26pm
View
Thks, i have try that option on the link but it does not work, i need to have all the information on the table put ont the report, any more suggestions??
azteca_04
20-Nov-12 17:39pm
View
Hi,
i dont get any errors the report just appears blank with no information
azteca_04
20-Nov-12 17:38pm
View
<pre>public partial class Form2 : Form
{
private TableLogOnInfo infoEntrada = new TableLogOnInfo();
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
confInfoEntrada();
CrystalReport1 listaReportes = new CrystalReport1();
ReportDocument docReporte = new ReportDocument();
MySqlConnectionStringBuilder connBuilder = new MySqlConnectionStringBuilder();
connBuilder.Add("DataBase", "DataBase");
connBuilder.Add("Data Source", "ipwithdatabasemysql");
connBuilder.Add("User Id", "user");
connBuilder.Add("Password", "pwd");
MySqlConnection connection = new MySqlConnection(connBuilder.ConnectionString);
docReporte.Load(@"C:\addresstowhere its located\CrystalReport1.rpt");
DataTable tablaDatos = new DataTable();
try
{
string cadComando = " ";
cadComando = "SELECT * FROM table";
connection.Open();
MySqlDataAdapter adapDatos = new MySqlDataAdapter(cadComando, connection);
tablaDatos.Clear();
adapDatos.Fill(tablaDatos);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
finally
{
connection.Close();
}
listaReportes.Database.Tables[0].SetDataSource(tablaDatos);
crystalReportViewer1.ReportSource = docReporte;
crystalReportViewer1.Zoom(1);
}
private void confInfoEntrada()
{
try
{
infoEntrada.ConnectionInfo.ServerName = "ipwithserver";
infoEntrada.ConnectionInfo.UserID = "User";
infoEntrada.ConnectionInfo.Password = "pwd";
infoEntrada.ConnectionInfo.DatabaseName = "database";
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}
</pre>
Show More