Mensaje
 
a
10/03/2010 09:39:03
General information
Foro:
Visual FoxPro
Category:
Automatización COM/DCOM y OLE
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
ID de la conversación:
01453718
ID del mensaje:
01453723
Views:
60
>Hi friends:
>
>I add an Excel object and everything works well but I'd like to allow my client to "save as" with a suggested name.
>
>I tried oExcel.workbook.save("My name") and an error "Invalid number of parameters" or so.
>
>I tried oExcel.workbook.saveas("My Name") and an Excel file is saved as "My Name" but I want the user to be able to change it.
>
>Can anyone dissipate the haze of my ignorance?
>
>Thank you
>
> Héctor

Do you want to call the SaveAs dialog and let the user type the name or you want to SaveAs to the predefined name you chose?

If the former, you may need to invoke the SaveAs dialog of Excel programmatically.
If it's not broken, fix it until it is.


My Blog
Previous
Responder
Mapa
Ver