Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Feeding Date Values From C++ Using Automation

Hi,

My international application is trying to create a sheet with date values,
but I am not sure how to format the dates before sending them to Excel. I
initially tried the machine format, but after a lot of attempts it seems
that on my machine Excel only accepts dates in US (mm/dd/yy) format, even if
I set the user locale, default user locale, date format, and office default
language to English (UK), which implies a dd/mm/yy format.

The question arises whether this will hold true in other installations as
well. I've seen two comments in Microsoft literature about this: the first
mentions Excel uses the lcid parameter passed in the IDispatch Invoke call.
However, I do not use IDispatch but rather import the type library and use
the dual interface directly. I'm not sure it is relevant to my problem, as
the purpose behind the lcid parameter is to select the type library to use,
but in any case I don't go through IDispatch.

The other comment was related to .NET development for Excel 2003. They
mention that the thread culture must match one of the MUIs installed on the
system. I am not sure whether this applies to earlier versions, replacing
culture with locale; I'm also not sure this applies in this situation, as I
cannot imagine I have to install a language pack in order to support
European-style dates.

Does anyone have experience with this matter? Any help would be greatly
appreciated.

Thanks,
Eran


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Separate protected worksheets feeding into one control sheet bollard Excel Worksheet Functions 0 July 9th 08 02:34 PM
Feeding data from one spreadsheet to another. Jeffa Excel Worksheet Functions 5 August 2nd 07 12:58 AM
stop automation to date field Melissa Excel Discussion (Misc queries) 3 December 12th 06 09:20 AM
Automatic Feeding lsmft Excel Discussion (Misc queries) 8 July 30th 06 04:01 PM
Macro - Feeding path and file name to PDF maker Bill Excel Discussion (Misc queries) 1 July 21st 05 03:39 PM


All times are GMT +1. The time now is 02:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"