Four people were injured today when a truck drove through the warning gates at a train crossing and hit the dining car of an Amtrak train headed from San Jose to Sacramento, according to an Amtrak spokeswoman.

The truck hit the Capitol Corridor train, shattering the windows and smashing the door of the dining car, at about 5 p.m. at the crossing at Frye Road in Dixon, said Amtrak spokeswoman Karina Romero.

At least four people on the train - two passengers and two employees - were injured, she said. One employee and one passenger were transported to a hospital for treatment, Romero said. There were no other injuries among the 218 other passengers.

The train had only one more stop, in Davis, before it was due to arrive in Sacramento at 5:23 p.m. Another train was dispatched to pick up the passengers after the accident.

The truck driver was not injured.