Yep, I have done it twice. Both times max the dealer would take was 5K on card.
Before you get into a big hassle with the dealer about paying for the entire price with the card, ask yourself if you want to fight with the folks who will be deciding what is covered by your warranty after purchase. @:-)
By the way, I suspect if you push the entire payment on credit card you may find your deal is somehow off, because the dealer is taking too big a hit.