How can i change shipping and billing adress from order programmatically? I tried this but don't work.
$shippingAddress = Mage::getModel('sales/order_address')
->setFirstname("value")
->setMiddlename("value")
->setLastname("value")
->setSuffix("value")
->setCompany("value")
->setStreet("value"))
->setCity("value")
->setCountry_id("value")
->setRegion("value")
->setRegion_id("value")
->setPostcode("value")
->setTelephone("value")
->setFax("value");
and
$order->setShippingAddress($shippingAddress)
->setShipping_method('flatrate_flatrate');