XslCompiledTransform.Load() fails sometimes

Basically the issue is, when the XSL style sheet is loaded by URI it
is cool but when the exact same style sheet loaded by it's contents
the load fails (for this particular style sheet).  Because our sheets
are kept in a DB, loading by content is preferable.

Content based load code:

Stream xslStream =3D new MemoryStream(xslString);
XmlReader xslTextReader =3D XmlReader.Create(xslStream);
compliedXsl.Load(xslTextReader);

URI based load code:
compliedXsl.Load(xslUri);


The error states that there in an invalid character for the encoding
at line 2140 position 365.

Here is the problematic template from the style sheet (sorry it's so
long i could not include the entire thing, but The line below that
starts with "select=3D"translate(translate(translate(substring-
after(..." is line 2140.):

<xsl:template match=3D"IFRAME">
	<TABLE BORDER=3D"0" CELLSPACING=3D"1" CELLPADDING=3D"0" WIDTH=3D"100%">
		<TR>
			<TD/>
		</TR>
		<TR>
			<TD ALIGN=3D"CENTER">
				<TABLE BORDER=3D"0" CELLSPACING=3D"0" CELLPADDING=3D"0" WIDTH=3D"100%"
ALIGN=3D"CENTER">
					<TR>
						<xsl:choose>
							<xsl:when test=3D"../IMAGES/GRAPHIC/FILENAME[. !=3D '']">
								<TD ALIGN=3D"CENTER">
									<IMG NAME=3D"frameimg" ID=3D"frameimg" CLASS=3D"frame">
										<xsl:attribute name=3D"SRC"><xsl:value-of select=3D"/DEFAULT/
LINK/IMAGES/GRAPHIC/FILENAME"/></xsl:attribute>
										<xsl:if test=3D"/DEFAULT/LINK/IMAGES/GRAPHIC/HEIGHT[. !=3D '']">
											<xsl:attribute name=3D"HEIGHT"><xsl:value-of select=3D"/DEFAULT/
LINK/IMAGES/GRAPHIC/HEIGHT"/></xsl:attribute>
										</xsl:if>
										<xsl:if test=3D"/DEFAULT/LINK/IMAGES/GRAPHIC/WIDTH[. !=3D '']">
											<xsl:attribute name=3D"WIDTH"><xsl:value-of select=3D"/DEFAULT/
LINK/IMAGES/GRAPHIC/WIDTH"/></xsl:attribute>
										</xsl:if>
										<xsl:if test=3D"SHOWBORDER[. =3D 'True']">
											<xsl:attribute name=3D"BORDER">1</xsl:attribute>
										</xsl:if>
										<xsl:attribute name=3D"ALT"><xsl:value-of select=3D"/DEFAULT/
LINK/IMAGES/GRAPHIC/CAPTION"/></xsl:attribute>
										<xsl:attribute name=3D"TITLE"><xsl:value-of select=3D"/DEFAULT/
LINK/IMAGES/GRAPHIC/CAPTION"/></xsl:attribute>
									</IMG>
								</TD>
							</xsl:when>
							<xsl:otherwise>
								<TD ALIGN=3D"CENTER">
									<IFRAME ID=3D"Frame1" NAME=3D"Frame1" WIDTH=3D"99%" FRAMEBORDER=3D=
"0"
MARGINHEIGHT=3D"1" MARGINWIDTH=3D"1"
ONLOAD=3D"javascript:scrollParentTop();">
										<xsl:choose>
											<xsl:when test=3D"/DEFAULT/LINK/ID[. !=3D $reglink]">
												<xsl:attribute name=3D"SRC"><xsl:value-of select=3D"/DEFAULT/
LINK/URL"/>
												<xsl:for-each select=3D"/DEFAULT/GENERAL/REQUEST/
QUERYSTRINGPARAMETER[not(starts-with(.,'L=3D')) and not(starts-
with(.,'l=3D')) and not(starts-with(.,'nav=3D'))]">
												<xsl:choose><xsl:when test=3D"position() =3D 1 and
not(contains(/DEFAULT/LINK/URL, '?'))">?</
xsl:when><xsl:otherwise>&amp;</xsl:otherwise></xsl:choose><xsl:value-
of select=3D"substring-before(., '=3D')" disable-output-escaping=3D"yes"/
>=3D<xsl:call-template name=3D"url-encode"><xsl:with-param
name=3D"str"><xsl:value-of select=3D"substring-after(., '=3D')" disable-
output-escaping=3D"yes"/></xsl:with-param></xsl:call-template></xsl:for-
each></xsl:attribute>
											</xsl:when>
										</xsl:choose>
										<xsl:attribute name=3D"HEIGHT"><xsl:value-of select=3D"HEIGHT"/
></xsl:attribute>
										<xsl:if test=3D"SHOWSCROLLBAR[. =3D 'False']">
											<xsl:attribute name=3D"SCROLLING">No</xsl:attribute>
										</xsl:if>
										<xsl:if test=3D"SHOWBORDER[. =3D 'True']">
											<xsl:attribute name=3D"STYLE">border:solid <xsl:value-of
select=3D"BORDERCOLOR"/> 1px</xsl:attribute>
										</xsl:if>
										<xsl:comment><![CDATA[ -->&nbsp;]]><![CDATA[<!-- ]]></
xsl:comment>
									</IFRAME>
									<SCRIPT LANGUAGE=3D"JavaScript1.1">
										<xsl:comment><![CDATA[
							if (document.layers){
							document.write("<img name=3D'spacer' src=3D'/images/static/gfx/
pxl_trans.gif' border=3D0 width=3D1 height=3D]]><xsl:value-of
select=3D"HEIGHT"/><![CDATA[>");
							document.close();
							}
							//]]></xsl:comment>
									</SCRIPT>
									<xsl:if test=3D"/DEFAULT/LINK/ID[. =3D $reglink]">
										<IFRAME id=3D"spinner" SCROLLING=3D"0" FRAMEBORDER=3D"0"
MARGINHEIGHT=3D"0" MARGINWIDTH=3D"0" ALIGN=3D"CENTER" STYLE=3D"LEFT: 300px;
WIDTH: 300px; POSITION: absolute; TOP: 250px; BGCOLOR: #CC0000; Z-
INDEX: 0" SRC=3D"/global/images/pm/loading.gif"/>
									</xsl:if>
								</TD>
							</xsl:otherwise>
						</xsl:choose>
					</TR>
					<xsl:if test=3D"((../IMAGES/GRAPHIC/CAPTION) or (../WINDOW/
SHOWDATE[. =3D 'True']))">
						<TR>
							<TD ALIGN=3D"CENTER">
								<FONT>
									<xsl:attribute name=3D"FACE"><xsl:value-of select=3D"/DEFAULT/
GENERAL/STYLE/FONTS/FONT19/FACE"/></xsl:attribute>
									<xsl:attribute name=3D"SIZE"><xsl:value-of select=3D"/DEFAULT/
GENERAL/STYLE/FONTS/FONT19/SIZE"/></xsl:attribute>
									<xsl:choose>
										<xsl:when test=3D"($linklayout !=3D '0') and ($linklayout !=3D
'1')">
											<xsl:attribute name=3D"COLOR"><xsl:value-of select=3D"/DEFAULT/
LINK/WINDOW/TEXTCOLOR"/></xsl:attribute>
										</xsl:when>
										<xsl:otherwise>
											<xsl:attribute name=3D"COLOR"><xsl:value-of select=3D"/DEFAULT/
GENERAL/STYLE/FONTS/FONT8/COLOR"/></xsl:attribute>
										</xsl:otherwise>
									</xsl:choose>
									<xsl:if test=3D"../IMAGES/GRAPHIC/CAPTION">
										<xsl:value-of select=3D"../IMAGES/GRAPHIC/CAPTION"/>
									</xsl:if>
									<xsl:if test=3D"../WINDOW/SHOWDATE[. =3D 'True']">
										<xsl:value-of select=3D"$whitespace" disable-output-
escaping=3D"yes"/>
										<xsl:value-of select=3D"/DEFAULT/GENERAL/DAYDATE"/>
									</xsl:if>
								</FONT>
								<BR/>
							</TD>
						</TR>
					</xsl:if>
					<xsl:if test=3D"../PAGEREFRESH[SHOWREFRESHBUTTON =3D 'True' or
SHOWREFRESHTEXT =3D 'True' ]">
						<TR>
							<TD ALIGN=3D"CENTER">
								<BR/>
								<FORM NAME=3D"RefreshForm">
									<xsl:if test=3D"../PAGEREFRESH[SHOWREFRESHBUTTON =3D 'True']">
										<INPUT NAME=3D"RefreshBtn" TYPE=3D"Button" VALUE=3D"Refresh">
											<xsl:attribute name=3D"OnClick"><![CDATA[refreshFrame();
return false]]></xsl:attribute>
										</INPUT>
									</xsl:if>
									<xsl:if test=3D"../PAGEREFRESH[SHOWREFRESHTEXT =3D 'True']">
										<BR/>
										<FONT>
											<xsl:if test=3D"/DEFAULT/GENERAL/STYLE/FONTS/FONT19/FACE[. !=3D
'Default']">
												<xsl:attribute name=3D"FACE"><xsl:value-of select=3D"/DEFAULT/
GENERAL/STYLE/FONTS/FONT19/FACE"/></xsl:attribute>
											</xsl:if>
											<xsl:attribute name=3D"SIZE"><xsl:value-of select=3D"/DEFAULT/
GENERAL/STYLE/FONTS/FONT19/SIZE"/></xsl:attribute>
											<xsl:choose>
												<xsl:when test=3D"($linklayout !=3D '0') and ($linklayout !=3D
'1')">
													<xsl:attribute name=3D"COLOR"><xsl:value-of select=3D"/
DEFAULT/LINK/WINDOW/TEXTCOLOR"/></xsl:attribute>
												</xsl:when>
												<xsl:otherwise>
													<xsl:attribute name=3D"COLOR"><xsl:value-of select=3D"/
DEFAULT/GENERAL/STYLE/FONTS/FONT8/COLOR"/></xsl:attribute>
												</xsl:otherwise>
											</xsl:choose>
											<xsl:value-of select=3D"../PAGEREFRESH/REFRESHTEXT"/>
										</FONT>
									</xsl:if>
								</FORM>
							</TD>
						</TR>
					</xsl:if>
				</TABLE>
			</TD>
		</TR>
	</TABLE>
	<DIV ID=3D"quickformdiv" STYLE=3D"position: absolute; top: 0; left: 0px;
width: 0; height: 0; visibility: hidden;">
		<FORM NAME=3D"qform" TARGET=3D"Frame1" ACTION=3D"/global/pm/
registration.asp">
			<SCRIPT LANGUAGE=3D"JavaScript">
				<xsl:comment><![CDATA[

var formname =3D new Array();
var formval =3D new Array();]]><xsl:for-each select=3D"/DEFAULT/GENERAL/
REQUEST/FORMVARIABLE">
						<xsl:variable name=3D"formname">
							<xsl:value-of select=3D"substring-before(normalize-space(.),'=3D')"/
>
						</xsl:variable>
						<xsl:variable name=3D"formname_clean">
							<xsl:choose>
								<xsl:when test=3D"starts-with($formname,'_')">
									<xsl:value-of select=3D"substring-after($formname,'_')"/>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select=3D"$formname"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:variable>
						<xsl:variable name=3D"single_quote">
							<xsl:text>&#x27;</xsl:text>
						</xsl:variable>
						<xsl:variable name=3D"new_line">
							<xsl:text/>
						</xsl:variable>
						<xsl:variable name=3D"carriage_return">
							<xsl:text/>
						</xsl:variable><![CDATA[formname]]>[<xsl:value-of
select=3D"normalize-space(position())"/>]<![CDATA[=3D "]]><xsl:value-of
select=3D"$formname_clean"/><![CDATA[";]]><![CDATA[formval]]>[<xsl:value-
of select=3D"normalize-space(position())"/>]<![CDATA[=3D "]]><xsl:value-of
select=3D"translate(translate(translate(substring-after(.,'=3D'),
'&#x22;', $single_quote), '&#xD;', '=B6'), '&#xA;', '=B6')"/><!
[CDATA[";]]></xsl:for-each><![CDATA[
var currentLinkID =3D ]]><xsl:value-of select=3D"/DEFAULT/LINK/ID"/><!
[CDATA[;
var regLinkID =3D ]]><xsl:value-of select=3D"/DEFAULT/GENERAL/REGISTRATION/
LINKNO"/><![CDATA[;
var qf_args =3D new Object();
var qf_query =3D document.location.search;
var qf_pairs1 =3D qf_query.split("?");
var qf_pairs =3D qf_pairs1[1].split("&");

for(i=3D0; i < qf_pairs.length; i++) {
	var qf_pos =3D qf_pairs[i].indexOf('=3D');
	if (qf_pos =3D=3D -1) {
		continue;
	}
	var qf_argname =3D qf_pairs[i].substring(0,qf_pos);
	var qf_value =3D qf_pairs[i].substring(qf_pos+1);
	qf_args[qf_argname] =3D unescape(qf_value);
}

if (document.getElementById("Frame1") !=3D null) {
	var qf_frame1 =3D  document.getElementById("Frame1");
	var qf_frame1_src =3D qf_frame1.src;
}

var qf_method =3D qf_args["method"];

if (currentLinkID =3D=3D regLinkID) {
	if (qf_method =3D=3D "post") {
		writeQFormElems2();
	}
else {
	writeQFormElems();
}
}
//]]></xsl:comment>
</SCRIPT>
		</FORM>
	</DIV>
	<SCRIPT LANGUAGE=3D"JavaScript">

if (currentLinkID =3D=3D regLinkID) {



if (qf_method =3D=3D "post") {
	document.qform.method =3D "POST";

}
document.qform.action +=3D "?function=3D" + qf_args["function"];
document.qform.target =3D "Frame1";
document.qform.submit();
}
</SCRIPT>
</xsl:template>

Any ideas?

-CJ

0
mrjaxon (3)
3/27/2007 11:14:30 PM
dotnet.xml 7266 articles. 0 followers. Follow

0 Replies
641 Views

Similar Articles

[PageSpeed] 14

Reply:

Similar Artilces:

Installation of CRM v3.0c fails with Outlook 2007 #2
There is this thread, which I wish to reply to but don't know how. Thread URL: http://groups.google.com.my/group/microsoft.public.crm/browse_thread/thread/9a8dd21187c63f8f/70ec92d8b2203f30?hl=en&lnk=st&q=The+installed+version+of+Microsoft+Outlook+is+not+supported+by+the+Microsoft+CRM+client.+Please+upgrade+to+the+current+release+of+Microsoft+Office+Outlook.#70ec92d8b2203f30 Please see my solution at: http://zenetlife.blogspot.com/2008/01/installing-ms-dynamics-crm-client-v3c.html Hope this is useful. Regards, Eunice Hmmnnn - unfortunately, the conclusion in your blog is inco...

AfxGetInstanceHandle failed when calling it from a COM Event sink callback
I got an Assertion failed error from AfxGetInstanceHandle when calling it from a COM Event sink callback(which will be called from a local com event source in another process). it happened at ".../afxwin1.inl Line: 23". AfxGetInstanceHandle works fine if I call it from a normal function. who knows about this problem? thanks. MFC? Perhaps your callback if written in MFC needs to be protected with AFX_MANAGE_STATE? ...

What do I load ?
Hello. I'm trying to develop a web comsuming client using VS.NET 2003(VB), .NET Framework 1.1.4322, ASP.NET 1.1.4322, WSE2.0 on a WinXP Pro Sp2 comuter. If i comsume this web service: https://xatanet.net/xatanetwebservice/tripexportservice.asmx and do this operation: RetrieveArchivedTrips using: Dim strDate As Date = "2006-04-01" Dim endDate As Date = "2006-04-28" proxy.RetrieveArchivedTrips(strDate, endDate) What do I load when i use the following statements in my program: Dim doc as XmlDocument = new XmlDocument() doc.Load() Any...

Publisher Fails To Open
I have been using Publisher, which came bundled with Microsoft Office 2000 Premium, for a year and a half. Now, for reasons I cannot determine, it simply fails to open, whether I use the shortcut on the desktop or the start menu. I get no error message of any sort -- the desktop just continues unaltered. I have tried uninstalling Microsoft Office and reinstalling it and still cannot open Publisher, though the other programs bundled in Microsoft Office open just fine. Any advice? -- Bill B Delete the shortcut and create a new one. To do this, follow these steps: 1.Delete the broken...

Debug image fails to load.
Hi, I created an OS design with KITL, Kernel debugger enabled in Debug mode. But when i try to load the image to the CEPC it fails to boot. I am attaching the log here. ------ SERIAL PORT LOG starts ----------- Microsoft Windows CE Ethernet Bootloader Common Library Version 1.0 Built Dec 9 2002 18:35:13 Copyright (c) 2000-2001 Microsoft Corporation Microsoft Windows CE Ethernet Bootloader 3.3 for CE/PC (Feb 6 2003) Boot Args @ 0x1F136 and ucLoaderFlags is 1 PCI Device Configurations (3 PCI bus(es) present)... ======================================================== Bus, Devi...

Logon failed
I am using Live Mail as my default program. When I try to sent a attachment by clicking mail attachment in word 2007 to go through live mail I get this notice. Logon failed. You must log on to Microsoft Exchange to access your address book. What does this mean? Using Office works 2007. W7 professional. Any help would be appreciated. Grumpy Are you using Word's "Send Email" feature? Or are you in WLMail and selecting "Attach", then locating a file via Windows Explorer? "Grumpy" <Grumpy@discussions.microsoft.com> wrote ...

Loading Great Plains on Citrix
Is it feasible to load more than one instance of Great Plains on a Citrix Server? So that: First Company C:Program Files/Microsoft Business Solutions/Company1/Great Plains/ Second Company C:Program Files/Microsoft Business Solutions/Company2/Great Plains/ This is recommended if each company uses different mod forms and reports: But if this to point to company a or b - you can configure this with Great Plains security for which users can access what company when loggin into GP. Regards James "Tremor Olaes" <TremorOlaes@discussions.microsoft.com> wrote in messa...

Multiple Forms for Data Entry; re-loading data
Hi All, I have 15 forms set up to enter data in Excel which then gets stored in a hidden worksheet in the workbook. Right now it is set up so that the user can scroll through all 15 forms, enter the data, and then they are prompted to save to the database, which copies all the data over and erases the forms. I think it will be useful to allow them to re-load the data they've already entered, in case they need to make changes. So I'm imagining some kind of drop box or something that will display all the IDs associated with the information they've entered, and then they...

Operation failed. An object could not be found
I am presently using outlook express only because my outlook stopped working. Express works fine, but in Outlook, everytime I try to send any type of email I get the error message: "The operation failed. An object could not be found." It is Outlook 2002, w/SP-2 installed I've tried reinstalling the program but with no effect. Any ideas? Can you give more information on the actual error? What object? -- Nikki Peterson [MVP - Outlook] "Bill Thaden" <wathaden@writeme.com> wrote in message news:8f6001c34599$0f976a00$a401280a@phx.gbl... I am presently using o...

XslCompiledTransform Issues
How do I do the following using streams instead of actual files. I've tried it using memory streams for the input/and output but I don't seem to be able to get the output stream to contain anything. Friend Shared Function ApplyTransform(ByVal strXSLTransform As String, ByVal objReport As Xml.XmlDocument) As XmlDocument Dim settings As New XmlWriterSettings() Dim tmpdoc As New Xml.XmlDocument settings.Indent = True settings.IndentChars = vbTab Dim writer As XmlWriter = XmlWriter.Create("c:\output.html", setting...

I cannot load Lotus 123 files with my Excell Office 2003
My Excel program says "cannot load 123 files". What is wrong? Excel doesn't read .123 files. Can you go back to lotus and save to a common fileformat? Dudley wrote: > > My Excel program says "cannot load 123 files". What is wrong? -- Dave Peterson Unfortunately, nothing is wrong--Excel cannot open 123 files. You can try a Google search for file converters, or you can use 123 to convert the files into Excel format, if you have 123. -- tj "Dudley" wrote: > My Excel program says "cannot load 123 files". What is wrong? ...

EXCEL will not load #2
I am running Windows 98 and Office 2000, and it has worked fine for years. A couple of days ago I started to have some problems. I cannot identify what I may done to create the problems. Friday morning it was working fine when I started work. I then went on to delete some (quite a few) unnecessary files, and ran Disk. defrag. with Norton Systemworks. By about noon I was having trouble loading EXCEL. I got a message that the system was low on recourses. I have 640 MB of Ram, and I can load Word no problem, as well as AUTOCad, a much larger program than both Excel and Word. I have had this ...

CRM 4.0 Client Rollups ( all of them) fail
All- Have a CRM 4.0 install and have applied the rollups to 4 level- all server rollups went fine. When trying to apply a roll up ( I tried 1 2 4 and 5 ) I am getting a failure Thanks for the look! here is part of the log- 11:17:56| Info| === Managed setup logging started: 7/10/2009 11:17:56 AM === 11:17:56|Verbose| Method entry: Microsoft.Crm.UpdateWrapper.UpdateSetup.Initialize 11:17:56|Verbose| Method entry: Microsoft.Crm.Setup.Common.SetupBase.Initialize 11:17:56|Verbose| Method exit: Microsoft.Crm.Setup.Common.SetupBase.Initialize 11:17:56|Verbose| Method exit: Microsoft.Crm.UpdateWra...

picture loading
Catalogue document 220pgs, size 5.5x8.5 saved to CD - opens as it should if using LAPTOP. Above document if opened using HOME PC, following: Open file & all pages load tiled one on top of another. Navigate to another page and the same occurs with a reload of 220 pictures each time and due to varying sizes of pictures thus unable to view each in their entirety. Unable to control or change order of opening sequence of pictures that open and load one on top of another on the 2 open pgs. Are there any settings or changes to make on HOME PC ? Can you influence the sequential order that p...

Outlook Fails When Rules Wizard Creates Rule
When I try to create a rule Outlook has an error and needs to shutdown. The rule is not created. The heading in the error report sent to Microsoft has a header like this: AppName: outlook.exe AppVer: 10.0.4510.0 ModName: outllib.dll ModVer: 10.0.4712.0 Offset: 004e3943 Any ideas on this? Dave ...

Can we use the "F6" or "Load Driver option" available during OS i
Hello All Can we use the "F6" or "Load Driver option" available during OS install any and all PNP drivers ? If yes, what special stuff needs to be added in uninstall section so that we donot get a blue screen saying CRITICAL_SERVICE_FAILED. reason why i asked is When we install driver using the "F6" or "Load Driver option", OS adds some special registry for these drivers in hklm\CCS\criticaldevicedatabase. How this content must be cleaned ? regards, -Jagadish Hadimani In general the answer is no. The real question is wh...

Loading Outlook integ fails unable to load OutlookPstInstaller.dll
On one PC only after reload of user profile cannot reload Outlook integration due to OutlookPstInstaller.dll not loading ...

Public Folders
I have a weird problem here. About two days ago, our remote office users cannot load anything in Exchange's public folders. Here is what is happens: 1. User logs onto computer and opens outlook. 2. User connects to Public Folders and opens up a shared calender. 3. Calendar opens, but user when user tries to scheduled a task, it halts with hour glass. - Permissions are correct - remote office is connected over WAN - Running Exchange 2003 Thanks for any advices..... In news:F52D3679-72DA-425C-91D4-098AD9D96D60@microsoft.com, agent007 <agent007@discussions.microsoft.com> t...

Information Store failed to start
I cannot start the information store, Event id 1003 More info would be useful, that event id is fairly generic. -- Mark Fugatt Microsoft Exchange MVP www.exchangetrainer.com www.msexchange.org "Maggie" <anonymous@discussions.microsoft.com> wrote in message news:02e201c3b46b$0e63aea0$a501280a@phx.gbl... > I cannot start the information store, Event id 1003 Do you review if you have 10 MB as free space inExchange partition? Exchange needs 10 MB as free space to operate normally, otherwise... it stops. Regards, Patty "Maggie" <anonymous@discussions.microsof...

Deployment Manager: fails to get LayoutXML
After many successful publishings, we are suddenly experiencing an error when publishing from the Deployment Manager. The application event log error states "Failed to get LayoutXML for object type __" and happens for any object. We're currently trying to publish changes to Incidents and Opportunities, but I've also tested using objects we've made no changes to. if anyone has seen something similar, help would be appreciated. ...

Macro Not Loading XLSART excel
I have created a macro and placed into the xlstart folder and the macro will load at first. At some point, the macro stops loading, yet the macro is still in the xlstart folder. Any thoughts? S Macros don't load from the XLSTART folder. Workbooks load from the XLSTART folder. The macro must be in workbook. Is your macro stored in a file named Personal.xls or in another workbook? Is the macro in a general module or Thisworkbook module or Worksheet module. Show us your macro code. More information please. Gord Dibben Excel MVP On Mon, 10 May 2004 15:05:49 -0700, "S Crowel...

Why Failed?????
I got the Address of ExtTextOutW of GDI32.dll,the Address is lower then 0x80000000. Then Change the memory protection property to PAGE_EXECUTE_READWRITE. Copy some word into the beginning that Address. But It's failed.The System break down. WHy? The corresponding code is here: FARPROC pTxtCode; HMODULE hMGDI=GetModuleHandle("GDI32.Dll"); pTxtCode=GetProcAddress(hMGDI,TEXT("ExtTextOutW")); BOOL bR=VirtualProtect(pTxtCode,32,PAGE_EXECUTE_READWRITE,&SourceOld); BYTE HookCode[8]; //the content of HookCode is a jump asm code: // HookCode[0]=FFh // HookCode[1]=78h...

How does 'LoadLibraryEx' behave, when the module to be loaded is already loaded?
Hi. What 'LoadLibraryEx' does when it's passed a module name, which is already loaded into address space of the process? Does it load that module for the second time, or it ignores the call? Where can I read about it, MSDN doesn't contain any information on this. Thanks in advance Martin >What 'LoadLibraryEx' does when it's passed a module name, which is >already loaded into address space of the process? Does it load that >module for the second time, or it ignores the call? Where can I read >about it, MSDN doesn't contain any information on this....

VBA, Sometimes Loads, Sometime Disabled
I'm Excel/Access/VBa developer, and I've noticed that coded workbooks intially open with VBA enabled, but subsequent workbooks do not. Sometimes they do. In other instances, closing a coded workbook, but leaving Excel open, prevent the next coded workbook from loading VBA, but if the application is closed and another coded workbook is opened, it loads fine. Why? It is not my code, but also another developer's coded books that do the same thing. Macro security is set to medium, and the workstations are locked down becuase we are in a large corporate enviroment. Hi, I'm n...

I have a pre-loaded version of Money2002 but....
.....I would like to know if I can successfully install it on my (soon to be purchsed) new notebook. I have the Cert. of Authenticity. Any ideas? -- Darren Your original computer should have come with a set of install disks for all the preloaded programs. If you still have these disks, you should be able to install Money on your new notebook. Also, you might see if Microsoft Works comes with your new laptop. Most times, the latest version of Money is included as well and you won't need to install the older version unless you like it better. "Darren Vaughan" <Darre...