Closed Thread
Results 1 to 4 of 4

Export to XML map on 64-bit Win 7

  1. #1
    Registered User
    Join Date
    07-15-2010
    Location
    Bath, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Export to XML map on 64-bit Win 7

    I'm using Excel 2010 on Win 7 64-bit and have some spreadsheets I need to export to XML via a map (which I've done in the past in Excel 2003 and didn't imagine there'd be a problem with!).

    The XML mapping functionality seems buried now - but I found instructions (via help), which are also at http://office.microsoft.com/en-gb/ex...010342365.aspx - these specify to install the Excel 2003 XML Tools Add-in.

    When follow the instructions, adding the XmlTools.xla add in fails with:
    Compile error
    The code in this project must be updated for use on 64-bit systems [...]

    I then tried introducing PtrSafe and LongPtr as described at http://msdn.microsoft.com/en-us/library/ee691831.aspx (which only required one signature to change).

    However, I when I re-added the add-in it showed a compilation error again - this time seemingly re. not recognising DomDocument50 - but I couldn't add a reference since the Reference option was disabled. Annoyingly, I can't recreate that compilation error any more - but the Add In is not installed.

    Has anyone found a way to get XML export working on Windows 2010 64-bit - or do I need to uninstall and install 32-bit??

    All the best,

    Kevin
    Last edited by kevindwise; 07-15-2010 at 06:32 AM. Reason: Solved

  2. #2
    Registered User
    Join Date
    07-15-2010
    Location
    Bath, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Export to XML map on 64-bit Win 7

    A-ha. It looks like the modifications re PtrSafe/LongPtr did do the trick after all :-) I thought the add-in had failed to install because the 'Source' and 'Import' buttons in the Developer/XML menu were disabled - but it turns out there was something in the particular worksheet I had open that was causing that. When I created a new worksheet those buttons became enabled - and when I copied and pasted by data in to place they remained active so I was able to do the export. Happy days.

    Kevin.

  3. #3
    Registered User
    Join Date
    11-07-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Export to XML map on 64-bit Win 7

    Hello Kevin,

    I would appreciate if you could kindly post the changes you made - you stated that you used PtrSafe and LongPtr as described at http://msdn.microsoft.com/en-us/library/ee691831.aspx

    But when I tried it I could not get it to work - XML map do not appear in XML Source when I convert a range to a XML list.

    Only change I made was for the 1st line

    Private Declare PtrSafe Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As LongPtr, ByVal lpBuffer As String) As LongPtr


    Thanks in advance


    Andrew

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Export to XML map on 64-bit Win 7

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1