not to butt in but !
from first post .
quote= Phenom X4 9100e 1.8 GHz
I was unsure of whether he had a 32 or 64 bit. Goggle returned both :)
not to butt in but !
from first post .
quote= Phenom X4 9100e 1.8 GHz
I was unsure of whether he had a 32 or 64 bit. Goggle returned both :)
Just for future reference. http://www.phpeasystep.com/workshopview.php?id=6
This script if logged in already will redirect. Ardav way is probably simpler if you just edit your existing code.
-Enter your BIOS (usually F2,F8, or F12)
-Go to boot options and select CD\DVD rom
-Insert your Windows CD
-Restart and Hit a button when your computer reads ("Press any key to boot from the CD")
-Go to Repair in the options Windows menu
**If this doesnt work you might be looking at reformatting.
What kind of processor do you have? You have to match up the windows bit set to that of your processor.
What I would try is to download all the system updates you can get and then try to install IE6 again.
Control Panel ->Security Center -> Windows Updates
This sounds like maybe you have some spyware. Some quick fixes include downloading:
-Adaware
-Spybot Search and Destroy
-AVG AntiVirus
If this doesnt work download Hjack This and post your logs on a Hijack this log and follow their instructions.
I would break it down into four parts:
1) run a counter or count query to find the total you have.
2) Store the items in an array
3) Print array values... 5 at a time with a loop.
4) keep track of the page number and which to display using either query strings or session variables.
Also some helpful links:
--http://www.php-development.ru/php-scripts/search-engine.php
--http://www.ibm.com/developerworks/library/os-php-sphinxsearch/
I would look into an online book if you can since all those settings are going to differ on different servers.
I'm not doing it all for you but should be more than enough for you to get started.
#include stat_lib.h //assuming you have created it
#include <cstdlib>
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
//Step(1)
double far[100];
double cel[100];
//Step(2)
for(int i=0;i<100;i++)
{
far[i] = rand() % 70 + 100;
}
//For step(3) you do the same as step two but with
//the loop converting to Celcius.
return 0;
}
For step four consider making functions as follows in your stat_lib.h:
#ifndef stat_lib_h
#define stat_lib_h
int median(//input parameters)
{
using namespace std;
//...Some code to find the median
return //return the median;
}
#endif
I might be wrong and it's one of windows boot commands, but may be a virus. The following link is how to remove it.
Do you use percentages? As in
<table width="80%">
You might want to use absolute..
<table width="800px">
What is the error that is generated?
And to add on..I want the reports to be saved in pdf format. Please guide me how to do that !
Try this site out http://www.weberdev.com/get_example-4423.html
What I would try is writing a script and having a few friends try it out. The only way to tell :). The logging in part I believe you might be doing two thing 1) finding a mySQL entry and 2) Setting session variables of the clients log in information etc... Then again I might be wrong also. Good luck and please post if it works.
You could use the PHP file manipulation. i.e. create your own version of a string builder to create the files for you.
<!-- -->
Same as HTML I believe
what kind of config file? i.e. asp, ini, etc
I believe its just the # symbol.
whats the input file look like?
I believe ASP might not be the way to go due to needing a Microsoft Server, unless the server is an IIS(Microsoft) and you have Visual Studio already. If all it is mathematical equations, then you can easily get away with writing just in javascript and HTML to run on the client's machines.
sure... in the meta tag at the top of the html.... insert this between the <head></head> tags
<meta http-equiv="refresh" content="x">
where you replace x with how many seconds you want to wait before you refresh
I'm still learning all the bells and whistles of ASP-C#... but I'll give a shot..
Two things
1) Set up an auto-refresh in the meta tag
or
2) Check to make sure the OnValueChanged is called somehow when the button is clicked... if it is not already activated.
hope this helps...
public static void ClearForm(System.Windows.Forms.Control parent)
{
foreach (System.Windows.Forms.Control ctrControl in parent.Controls)
{
//Loop through all controls
if (object.ReferenceEquals(ctrControl.GetType(), typeof(System.Windows.Forms.TextBox)))
{
//Check to see if it's a textbox
((System.Windows.Forms.TextBox)ctrControl).Text = string.Empty;
//If it is then set the text to String.Empty (empty textbox)
}
else if (object.ReferenceEquals(ctrControl.GetType(), typeof(System.Windows.Forms.RichTextBox)))
{
//If its a RichTextBox clear the text
((System.Windows.Forms.RichTextBox)ctrControl).Text = string.Empty;
}
else if (object.ReferenceEquals(ctrControl.GetType(), typeof(System.Windows.Forms.ComboBox)))
{
//Next check if it's a dropdown list
((System.Windows.Forms.ComboBox)ctrControl).SelectedIndex = -1;
//If it is then set its SelectedIndex to 0
}
else if (object.ReferenceEquals(ctrControl.GetType(), typeof(System.Windows.Forms.CheckBox)))
{
//Next uncheck all checkboxes
((System.Windows.Forms.CheckBox)ctrControl).Checked = false;
}
else if (object.ReferenceEquals(ctrControl.GetType(), typeof(System.Windows.Forms.RadioButton)))
{
//Unselect all RadioButtons
((System.Windows.Forms.RadioButton)ctrControl).Checked = false;
}
if (ctrControl.Controls.Count > 0)
{
//Call itself to get all other controls in other containers
ClearForm(ctrControl);
}
For the aboove code, instead of making it empty, I would check to see if there is anything inside of them and loop through with a flag(boolean) and run a check at the end.
ok so my search for how to use the webcontrol landed me here. Microsoft's how to website for te web control. I then was looking deeper and found that I can build a string and load that into the browser than strictly an html file. I am going to go that route and thnks again for all the help.
Sorry it took me so long to reply but here it goes....
The streamwriter is closed, here is the function for that
public void Save_Invoice(int Invoice_Num, int Serial_Num)
{
//fills out the variables for the html file from database
cur_invoice.Fill_Invoice(Serial_Num, Invoice_Num);
//convert some of the variables to currency.
cur_invoice.Convert_C();
//create the file (invoice)
try
{
FileInfo Invoice_File = new FileInfo("Invoice" + Invoice_Num + ".html");
}
catch
{
Error newError = new Error();
newError.Show();
newError.txtError.Text =
"There was an error saving the file. ";
}
////////////////////////////////////////////////
//produce the html to insert into the document./
////////////////////////////////////////////////
//Heading and Company Block
System.IO.StreamWriter Out_File = new System.IO.StreamWriter("Invoice" + Invoice_Num + ".html");
Out_File.WriteLine("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
Out_File.WriteLine("<html xmlns=\"http://www.w3.org/1999/xhtml\" ><head><title>Invoice ");
Out_File.WriteLine(Invoice_Num);
Out_File.WriteLine("</title>");
Out_File.WriteLine("</head><body><table width=\"100%\" id=\"CompanyBlock\"><tr> <td align=\"center\"><h1><label id=\"Company\">Holley Office Products, Inc</label></h1></td></tr><tr><td align=\"center\"><label id=\"Street\">P.O. Box 938</label></td></tr><tr><td align=\"center\"><label id=\"City\">Benton</label>,<label id=\"State\">KY</label><label id=\"Zip\">42025</label></td></tr><tr><td align=\"center\"><label id=\"Phone\">(270) 527-5536</label></td></tr></table><table width=\"100%\"><tr><td align=\"center\"><h1><label id=\"CompanyTitle\">COIN OP INVOICE</label></h1></td></tr></table>");
...
...
...
//Closing html
Out_File.WriteLine("</td></tr></table></body></html>");
//close the file
Out_File.Close();
For the webin object... it is the web browser control i have on the form.
Thank you for your help... I am going to move on to Diamond's suggestion and be back.
I'm writing a function that creates an html file, loads it into a invisible browser, prints, then deletes that html file. However I'm getting an error in the print and delete portion.
Here are the two errors
(Output from the debugger)
A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
(When error catching is disabled)
The process cannot access the file 'C:\*Path excluded in post* because it is being used by another process.
Here is the code for the Delete function
private void Delete_Invoice(int Invoice_Num)
{
if (File.Exists("Invoice" + Invoice_Num + ".html"))
{
//Delete the invoice file
try
{
File.Delete("Invoice" + Invoice_Num + ".html");
}
catch
{ //System.Data.SqlClient.SqlException ex)
Error newError = new Error();
newError.Show();
newError.txtError.Text =
"There was an error Deleting the file. ";
}
}
}
Code for the Print Function
private void btnPrint_Click(object sender, EventArgs e)
{
//print out all the invoices selected
if (File.Exists("Invoice" + Invoice_Num + ".html"))
{
Delete_Invoice(Invoice_Num);
}
Save_Invoice(Invoice_Num, Serial_Num);
Thread.Sleep(500);
webIn.Navigate(Path.Combine(Application.StartupPath, "Invoice" + Invoice_Num + ".html"));
webIn.Print();
webIn.GoHome();
Thread.Sleep(1000);
Delete_Invoice(Invoice_Num);
}
Some of the things you selected I have tried..
Ran..Spybot..
I have not tried to uninstall/reinstall..IE is very hard to uninstall..
I am now using Firefox but so much of Windows is in everything..and is not compatible with Firefox..It is just another problem..
CCCleaner..I used to have that..Seems all it does is erase cookies..
Finally I appreciate the advice..I will try these and post on the results..Thanks again..
When using CC...try using the Registry Fix
I'm no expert on the issue, but I would try:
1) Installing some anti-virus/spyware remover programs to make certain that it is update related:
-Adaware
-CCleaner
-Spybot Search and Destroy
2) See if you can uninstall and reinstall
-IE download
-Previous Post on Yahoo
-Previous Versions of IE
3)Try out Firefox:
-FireFox
4) All else fails... Reformat.
Is it your Windows Explorer (Desktop) or Internet Explorer?
Wow. Thanks for the reply red, after trying to renew the IP it gave me an error which I googled - brought me to a site that mentioned services, so I thought I'd take a look.
I noticed DHCP client wasn't running on the aforementioned pc. Simple fix! BUT! What would have made that service not run? start up was automatic, but it didn't actually start.
My guess would be that there was a conflict with the IP address range and the range of your routers 'server'... It will show up that everything is ok, but not completely start working due to the conflicting address issue.
Are you looking for the formulas or to simply create a spreadsheet that looks similar?
Have you:
1) Opened the command prompt and typed the following:
-ipconfig/release
(wait a few seconds)
-ipconfig/renew
*Sometimes windows will not do this for some reason when in
the network screen.
2) Disconnected the router or hub which you are using?
3) Logged into your router and refreshed the client table?
-type 192.168.0.1 (Sometimes 192.168.1.1 or something
completely different.
-Search around until you see a client table and refresh that.
-Search around until you see (allowed DCHP Clients), or
something similar and increase this amount.
*This will usually fix any conflicting ip address issue.
Here are some other sites:
http://www.techsupportforum.com/networking-forum/networking-support/80718-laptop-not-getting-correct-ip-address.html
http://forums.majorgeeks.com/showthread.php?t=176570
Well I found out that you cant have just numbers as column names.. So I changed that around and it worked..
Solution:
$sql = "INSERT INTO Admin ( FeeName, Day30, Day60, Day90, DayCreated)
VALUES
( '".$_POST[txtFee]."', '".$_POST[txt30]."','".$_POST[txt60]."','".$_POST[txt90]."','".$_POST[txtDayC]."')";
I am trying to insert a new record into a mysql database and get the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '30, 60, 90, DayCreated) VALUES ( 'Rush Shirt', '6-30-09','7-30-09','8-30-09','5-' at line 1
Using this code in php:
$sql = "INSERT INTO table_name ( FeeName, 30, 60, 90, DayCreated)
VALUES ( '$_POST[txtFee]', '$_POST[txt30]','$_POST[txt60]','$_POST[txt90]','$_POST[txtDayC]' )";
I searched the forums and the internet and couldn't find the correct syntax to fix this :(