subclassing xmlReader issues

    I have created a subclass of xmlReader and was passing that in to 
XPathDocument and using that XPathDocument instance in my 
xslCompiledTransform transform() method.  Something about my reader causes 
the xslCompiledTransform to behave differently in reading xml attributes 
depending on whether I am debugging the xsl or not.
     I declared all of abstract methods and I don't get any errors building  
my new xmlReader class.  I get no exceptions when using it to parse my xml  
document and while debugging I can see my xml attributes.  But when I  try to 
use it with or without visual studio and XslCompiledTransform(false) I  get 
no values returned for my xml attributes.
     When I step through the xsl file:
 =================================================
 1            xmlReader = New XmlData2010SASDataReader(FilePath)
 2            
 3            doc = New XPathDocument(xmlReader)
 4            XMLNavigator = doc.CreateNavigator
 5            xslDoc = New XslCompiledTransform(false)
 6            xslDoc.Load(xslPath)
 7            xslDoc.Transform(doc, New XsltArgumentList(), Response.Output)
 ==================================================
 In Visual Studio line 3 does all of the activity of reading the xmlReader 
 and going through it's methods and getting correct values for elements and 
 attributes but I get no activity for reading xmlReader in line 7.
     I am using a SortedDictionary object to store my attributes while on an 
 element.  The element and attributes are encapsulated in another state 
object 
 that the xmlReader subclass (XmlData2010SASDataReader) uses in all of the 
 overridden abstract methods of XMLReader superclass (GetAttribute(string), 
 MoveToFirstAttribute(), etc).
     My getAttribute(int) transports all my key/value pairs to an array so 
 that I can present the relevant attribute.

I have recompiled my custom XMLReader class twice:
1) I put a lock on the sortedDictionary object in the various methods that 
utilizes it.
2) I put a lock on the custom class that XmlData2010SASDataReader uses for 
element information within XmlData2010SASDataReader's accessor methods.
Neither changed the behavior.
     Maybe the SortDictionary object is not safe for this kind of setting.
     Any ideas or thoughts?  How I can trace back to my problem?

below is a sample snippet of what I am trying to do:

<xsl:variable nme="aname">
  <xsl:for-each select="/Root/test">
    <xsl:sort select="@attr1" />
    <xsl:copy-of select="." />
  </xsl:for-each >
</xsl:variable>

    In this case it would just build the collection in the same order as the 
original children set because it doesn't actually see the attribute values.  
So for this xml:
<Root>
    <test attr1="avalue" />
    <test attr1="anothervalue" />
</Root>
 I get this sorted set:
<test attr1="avalue" />
<test attr1="anothervalue" />

Which is not really sorted.
For more background please see the posting in the XSL group posted on 
8/26/2008 title " Different XPath testing behavior when using 
xslCompiledTransform(t in XSL" .

0
wejiv (3)
9/2/2008 12:34:00 PM
dotnet.xml 7266 articles. 0 followers. Follow

4 Replies
819 Views

Similar Articles

[PageSpeed] 32

"wejiv" <wejiv@discussions.microsoft.com> wrote in message 
news:EA65FC9B-5CE7-4F1B-AA21-B3AB16D5E502@microsoft.com...
>    I have created a subclass of xmlReader and was passing that in to
> XPathDocument and using that XPathDocument instance in my
> xslCompiledTransform transform() method.  Something about my reader causes
> the xslCompiledTransform to behave differently in reading xml attributes
> depending on whether I am debugging the xsl or not.
>     I declared all of abstract methods and I don't get any errors building
> my new xmlReader class.  I get no exceptions when using it to parse my xml
> document and while debugging I can see my xml attributes.  But when I  try 
> to
> use it with or without visual studio and XslCompiledTransform(false) I 
> get
> no values returned for my xml attributes.
>     When I step through the xsl file:
> =================================================
> 1            xmlReader = New XmlData2010SASDataReader(FilePath)
> 2
> 3            doc = New XPathDocument(xmlReader)
> 4            XMLNavigator = doc.CreateNavigator
> 5            xslDoc = New XslCompiledTransform(false)
> 6            xslDoc.Load(xslPath)
> 7            xslDoc.Transform(doc, New XsltArgumentList(), 
> Response.Output)
> ==================================================
> In Visual Studio line 3 does all of the activity of reading the xmlReader
> and going through it's methods and getting correct values for elements and
> attributes but I get no activity for reading xmlReader in line 7.

This is as expected. XPathDocument is a lightweight in-memory representation 
of your XML document; it's built once when you instantiate the object.

> below is a sample snippet of what I am trying to do:
>
> <xsl:variable nme="aname">
>  <xsl:for-each select="/Root/test">
>    <xsl:sort select="@attr1" />
>    <xsl:copy-of select="." />
>  </xsl:for-each >
> </xsl:variable>
>
>    In this case it would just build the collection in the same order as 
> the
> original children set because it doesn't actually see the attribute 
> values.
> So for this xml:
> <Root>
>    <test attr1="avalue" />
>    <test attr1="anothervalue" />
> </Root>
> I get this sorted set:
> <test attr1="avalue" />
> <test attr1="anothervalue" />
>
> Which is not really sorted.

Well, if it does actually write the attribute values into the output, then 
it does read them, so it's not the problem of it not seeing the values at 
all.

By the way, I don't quite understand why you use SortedList for your 
attributes, though. XML Infoset does not define any ordering for attributes 
on the element node, and XPathDocument (or XmlDocument, or any other API) is 
not required to enumerate attributes in exactly the order they were listed 
in the XML file (or returned by your implementation of XmlReader). Relying 
on order of attribute nodes in XSLT is an error by itself.


0
int19h (6)
9/2/2008 1:50:50 PM
    Thank you for pointing out my ambiguity.  The resulting set is really:
<Root>
   <test  />
   <test  />
</Root>

    It sees the individual element nodes because it prints out the correct 
number of them but doesn't "see" any attributes.
    The sorted Dictionary is part of my debugging efforts.

    Let me reprint the original symptom that was posted in the referenced 
newsgroup.  When XslCompiledTransform(true) is instantiated (true sets 
debugging on) then all attribute values are recognized and the set sorts as 
expected and I can retrieve and display attribute values. When 
XslCompiledTransform() or XslCompiledTransform(false) is used then the set is 
not sorted and and I get empty string on all attributes of all xml elements.
    Somehow the attributes and their values are being retrieved in debugging 
mode but not in run mode.  I think this has to do with how I wrote my methods 
that overload the xmlreader superclass methods.  Here is a short snippet of 
my code:


namespace XmlDatarunReaders
{
    /// This class generalizes the XMLReader so that XmlReader abstract 
methods 
    /// do not have to be redeclared.  Subclasses of this CustomXmlReader 
create the CustomXMLState for each xml element
    // so that the CustomXmlReader superclass can call on it for all 
information about the element.
    public abstract class CustomXmlReader : XmlReader
    {
     /// This class is a subclass of XMLReader and provides all code for 
it's abstract methods 
     /// Subclasses of this CustomXmlReader create the CustomXMLState for 
each xml element
    // so that the CustomXmlReader superclass can call on it for all 
information about the element.
    .....
            private CustomXMLState cState;
    .....
            public override string GetAttribute(string AttributeName) { 
return cState.StateAttribute(AttributeName); }
    .....
     }

    public class CustomXMLState
    {
        private SortedDictionary<string, string> dicAttributes = new 
SortedDictionary<string, string>();
.....
        public string StateAttribute(string Attribute)
        {
             return dicAttributes[Attribute]; 
        }
.....
    }
} //namespace XmlDatarunReaders



"Pavel Minaev" wrote:

> 
> "wejiv" <wejiv@discussions.microsoft.com> wrote in message 
> news:EA65FC9B-5CE7-4F1B-AA21-B3AB16D5E502@microsoft.com...
> >    I have created a subclass of xmlReader and was passing that in to
> > XPathDocument and using that XPathDocument instance in my
> > xslCompiledTransform transform() method.  Something about my reader causes
> > the xslCompiledTransform to behave differently in reading xml attributes
> > depending on whether I am debugging the xsl or not.
> >     I declared all of abstract methods and I don't get any errors building
> > my new xmlReader class.  I get no exceptions when using it to parse my xml
> > document and while debugging I can see my xml attributes.  But when I  try 
> > to
> > use it with or without visual studio and XslCompiledTransform(false) I 
> > get
> > no values returned for my xml attributes.
> >     When I step through the xsl file:
> > =================================================
> > 1            xmlReader = New XmlData2010SASDataReader(FilePath)
> > 2
> > 3            doc = New XPathDocument(xmlReader)
> > 4            XMLNavigator = doc.CreateNavigator
> > 5            xslDoc = New XslCompiledTransform(false)
> > 6            xslDoc.Load(xslPath)
> > 7            xslDoc.Transform(doc, New XsltArgumentList(), 
> > Response.Output)
> > ==================================================
> > In Visual Studio line 3 does all of the activity of reading the xmlReader
> > and going through it's methods and getting correct values for elements and
> > attributes but I get no activity for reading xmlReader in line 7.
> 
> This is as expected. XPathDocument is a lightweight in-memory representation 
> of your XML document; it's built once when you instantiate the object.
> 
> > below is a sample snippet of what I am trying to do:
> >
> > <xsl:variable nme="aname">
> >  <xsl:for-each select="/Root/test">
> >    <xsl:sort select="@attr1" />
> >    <xsl:copy-of select="." />
> >  </xsl:for-each >
> > </xsl:variable>
> >
> >    In this case it would just build the collection in the same order as 
> > the
> > original children set because it doesn't actually see the attribute 
> > values.
> > So for this xml:
> > <Root>
> >    <test attr1="avalue" />
> >    <test attr1="anothervalue" />
> > </Root>
> > I get this sorted set:
> > <test attr1="avalue" />
> > <test attr1="anothervalue" />
> >
> > Which is not really sorted.
> 
> Well, if it does actually write the attribute values into the output, then 
> it does read them, so it's not the problem of it not seeing the values at 
> all.
> 
> By the way, I don't quite understand why you use SortedList for your 
> attributes, though. XML Infoset does not define any ordering for attributes 
> on the element node, and XPathDocument (or XmlDocument, or any other API) is 
> not required to enumerate attributes in exactly the order they were listed 
> in the XML file (or returned by your implementation of XmlReader). Relying 
> on order of attribute nodes in XSLT is an error by itself.
> 
> 
> 
0
wejiv (3)
9/2/2008 3:01:10 PM
Please ignore previous postings because it had some extra remarks that might 
be confusing.  The revised is below:
    Thank you for pointing out my ambiguity.  The resulting set is really:
<Root>
   <test  />
   <test  />
</Root>

    It sees the individual element nodes because it prints out the correct 
number of them but doesn't "see" any attributes.
    The sorted Dictionary is part of my debugging efforts.

    Let me reprint the original symptom that was posted in the referenced 
newsgroup.  When XslCompiledTransform(true) is instantiated (true sets 
debugging on) then all attribute values are recognized and the set sorts as 
expected and I can retrieve and display attribute values. When 
XslCompiledTransform() or XslCompiledTransform(false) is used then the set is 
not sorted and and I get empty string on all attributes of all xml elements.
    Somehow the attributes and their values are being retrieved in debugging 
mode but not in run mode.  I think this has to do with how I wrote my methods 
that overload the xmlreader superclass methods.  Here is a short snippet of 
my code:


namespace XmlDatarunReaders
{
    public abstract class CustomXmlReader : XmlReader
    {
     /// This class is a subclass of XMLReader and provides all code for 
it's abstract methods 
     /// Subclasses of this CustomXmlReader create the CustomXMLState for 
each xml element
    // so that the CustomXmlReader superclass can call on it for all 
information about the element.
    .....
            private CustomXMLState cState;
    .....
            public override string GetAttribute(string AttributeName) { 
return cState.StateAttribute(AttributeName); }
    .....
     }

    public class CustomXMLState
    {
        private SortedDictionary<string, string> dicAttributes = new 
SortedDictionary<string, string>();
.....
        public string StateAttribute(string Attribute)
        {
             return dicAttributes[Attribute]; 
        }
.....
    }
} //namespace XmlDatarunReaders




"Pavel Minaev" wrote:

> 
> "wejiv" <wejiv@discussions.microsoft.com> wrote in message 
> news:EA65FC9B-5CE7-4F1B-AA21-B3AB16D5E502@microsoft.com...
> >    I have created a subclass of xmlReader and was passing that in to
> > XPathDocument and using that XPathDocument instance in my
> > xslCompiledTransform transform() method.  Something about my reader causes
> > the xslCompiledTransform to behave differently in reading xml attributes
> > depending on whether I am debugging the xsl or not.
> >     I declared all of abstract methods and I don't get any errors building
> > my new xmlReader class.  I get no exceptions when using it to parse my xml
> > document and while debugging I can see my xml attributes.  But when I  try 
> > to
> > use it with or without visual studio and XslCompiledTransform(false) I 
> > get
> > no values returned for my xml attributes.
> >     When I step through the xsl file:
> > =================================================
> > 1            xmlReader = New XmlData2010SASDataReader(FilePath)
> > 2
> > 3            doc = New XPathDocument(xmlReader)
> > 4            XMLNavigator = doc.CreateNavigator
> > 5            xslDoc = New XslCompiledTransform(false)
> > 6            xslDoc.Load(xslPath)
> > 7            xslDoc.Transform(doc, New XsltArgumentList(), 
> > Response.Output)
> > ==================================================
> > In Visual Studio line 3 does all of the activity of reading the xmlReader
> > and going through it's methods and getting correct values for elements and
> > attributes but I get no activity for reading xmlReader in line 7.
> 
> This is as expected. XPathDocument is a lightweight in-memory representation 
> of your XML document; it's built once when you instantiate the object.
> 
> > below is a sample snippet of what I am trying to do:
> >
> > <xsl:variable nme="aname">
> >  <xsl:for-each select="/Root/test">
> >    <xsl:sort select="@attr1" />
> >    <xsl:copy-of select="." />
> >  </xsl:for-each >
> > </xsl:variable>
> >
> >    In this case it would just build the collection in the same order as 
> > the
> > original children set because it doesn't actually see the attribute 
> > values.
> > So for this xml:
> > <Root>
> >    <test attr1="avalue" />
> >    <test attr1="anothervalue" />
> > </Root>
> > I get this sorted set:
> > <test attr1="avalue" />
> > <test attr1="anothervalue" />
> >
> > Which is not really sorted.
> 
> Well, if it does actually write the attribute values into the output, then 
> it does read them, so it's not the problem of it not seeing the values at 
> all.
> 
> By the way, I don't quite understand why you use SortedList for your 
> attributes, though. XML Infoset does not define any ordering for attributes 
> on the element node, and XPathDocument (or XmlDocument, or any other API) is 
> not required to enumerate attributes in exactly the order they were listed 
> in the XML file (or returned by your implementation of XmlReader). Relying 
> on order of attribute nodes in XSLT is an error by itself.
> 
> 
> 
0
wejiv (3)
9/2/2008 3:07:08 PM
I think it is not related to xmlReader at all, i use similar code and it 
works fine. Remember, that XslCompiledTransform class is an implementation of 
XSLT1.0 and you probably use xslt syntax from xslt 2.0 when creating 
attributes. Then it will set empty values of attribute. 
Correct sybtax for creating attributes (at least correct enough to work with 
my code in .net2.0) is following
<xsl:attribute name="D" ><xsl:value-of select="@ID"/></xsl:attribute>

if you use
<xsl:attribute name="DeltaBlockRefID" select = "@ID"/>
it will work in e.g. XMLSpy 2007 using latest xslt version, but when you use 
XslCompiledTransform class, the attributes' values will be empty.
Hope it will help you
"wejiv" wrote:

> Please ignore previous postings because it had some extra remarks that might 
> be confusing.  The revised is below:
>     Thank you for pointing out my ambiguity.  The resulting set is really:
> <Root>
>    <test  />
>    <test  />
> </Root>
> 
>     It sees the individual element nodes because it prints out the correct 
> number of them but doesn't "see" any attributes.
>     The sorted Dictionary is part of my debugging efforts.
> 
>     Let me reprint the original symptom that was posted in the referenced 
> newsgroup.  When XslCompiledTransform(true) is instantiated (true sets 
> debugging on) then all attribute values are recognized and the set sorts as 
> expected and I can retrieve and display attribute values. When 
> XslCompiledTransform() or XslCompiledTransform(false) is used then the set is 
> not sorted and and I get empty string on all attributes of all xml elements.
>     Somehow the attributes and their values are being retrieved in debugging 
> mode but not in run mode.  I think this has to do with how I wrote my methods 
> that overload the xmlreader superclass methods.  Here is a short snippet of 
> my code:
> 
> 
> namespace XmlDatarunReaders
> {
>     public abstract class CustomXmlReader : XmlReader
>     {
>      /// This class is a subclass of XMLReader and provides all code for 
> it's abstract methods 
>      /// Subclasses of this CustomXmlReader create the CustomXMLState for 
> each xml element
>     // so that the CustomXmlReader superclass can call on it for all 
> information about the element.
>     .....
>             private CustomXMLState cState;
>     .....
>             public override string GetAttribute(string AttributeName) { 
> return cState.StateAttribute(AttributeName); }
>     .....
>      }
> 
>     public class CustomXMLState
>     {
>         private SortedDictionary<string, string> dicAttributes = new 
> SortedDictionary<string, string>();
> ....
>         public string StateAttribute(string Attribute)
>         {
>              return dicAttributes[Attribute]; 
>         }
> ....
>     }
> } //namespace XmlDatarunReaders
> 
> 
> 
> 
> "Pavel Minaev" wrote:
> 
> > 
> > "wejiv" <wejiv@discussions.microsoft.com> wrote in message 
> > news:EA65FC9B-5CE7-4F1B-AA21-B3AB16D5E502@microsoft.com...
> > >    I have created a subclass of xmlReader and was passing that in to
> > > XPathDocument and using that XPathDocument instance in my
> > > xslCompiledTransform transform() method.  Something about my reader causes
> > > the xslCompiledTransform to behave differently in reading xml attributes
> > > depending on whether I am debugging the xsl or not.
> > >     I declared all of abstract methods and I don't get any errors building
> > > my new xmlReader class.  I get no exceptions when using it to parse my xml
> > > document and while debugging I can see my xml attributes.  But when I  try 
> > > to
> > > use it with or without visual studio and XslCompiledTransform(false) I 
> > > get
> > > no values returned for my xml attributes.
> > >     When I step through the xsl file:
> > > =================================================
> > > 1            xmlReader = New XmlData2010SASDataReader(FilePath)
> > > 2
> > > 3            doc = New XPathDocument(xmlReader)
> > > 4            XMLNavigator = doc.CreateNavigator
> > > 5            xslDoc = New XslCompiledTransform(false)
> > > 6            xslDoc.Load(xslPath)
> > > 7            xslDoc.Transform(doc, New XsltArgumentList(), 
> > > Response.Output)
> > > ==================================================
> > > In Visual Studio line 3 does all of the activity of reading the xmlReader
> > > and going through it's methods and getting correct values for elements and
> > > attributes but I get no activity for reading xmlReader in line 7.
> > 
> > This is as expected. XPathDocument is a lightweight in-memory representation 
> > of your XML document; it's built once when you instantiate the object.
> > 
> > > below is a sample snippet of what I am trying to do:
> > >
> > > <xsl:variable nme="aname">
> > >  <xsl:for-each select="/Root/test">
> > >    <xsl:sort select="@attr1" />
> > >    <xsl:copy-of select="." />
> > >  </xsl:for-each >
> > > </xsl:variable>
> > >
> > >    In this case it would just build the collection in the same order as 
> > > the
> > > original children set because it doesn't actually see the attribute 
> > > values.
> > > So for this xml:
> > > <Root>
> > >    <test attr1="avalue" />
> > >    <test attr1="anothervalue" />
> > > </Root>
> > > I get this sorted set:
> > > <test attr1="avalue" />
> > > <test attr1="anothervalue" />
> > >
> > > Which is not really sorted.
> > 
> > Well, if it does actually write the attribute values into the output, then 
> > it does read them, so it's not the problem of it not seeing the values at 
> > all.
> > 
> > By the way, I don't quite understand why you use SortedList for your 
> > attributes, though. XML Infoset does not define any ordering for attributes 
> > on the element node, and XPathDocument (or XmlDocument, or any other API) is 
> > not required to enumerate attributes in exactly the order they were listed 
> > in the XML file (or returned by your implementation of XmlReader). Relying 
> > on order of attribute nodes in XSLT is an error by itself.
> > 
> > 
> > 
0
rademenes (1)
10/30/2008 8:50:00 AM
Reply:

Similar Artilces:

Mobile Express issue
I just installed Mobile Express on my CRM 4.0 (rollup5) system and now CRM and CRM/m will not work. I get a Windows login prompt when trying to access either. Logging in doesn't work, after 3 times I get: HTTP Error 401.1 - Unauthorized: Access is denied Does the Mobile Express installation change authentication settings? I have no idea how to get CRM working again. Thanks Also, I cannot uninstall mobile express, the uninstall throws the following error: Error| Configuration exception.System.Exception: Action Microsoft.Crm.UpdateWrapper.DBUpdateAction failed. ---> System.Data...

Exchange Issue: Failed Emails
Greetings, I have an exchange (6.5) server running that pulls in some email from other mail servers via POP3 and delivers them to users. I have x-amount of failed emails in failed email folder under the troubleshooting tab of the pop3 connector manager. My question is this, how can I see those emails and route to individual users. Thanks in advance. Friendly Indian Is 6.5 the same as Exchange 2003? Or did you mean 5.5? In any case, POP3 connectors are either part of SBS or from a third party. If yours is the SBS one, I suggest you post your query to the SBS newsgroup. If it&...

Converting excel to text file
Hi, I want to convert an excel file to a .prn file. Here I need to retain the column width of all the columns in the excel as it is. I could do that by changing the autoformat to None. But the issue is when i try to save it as .prn file, it wraps up the text in the .prn file. the maximum length it goes without wrapping in the notepad is 236 character size. I am not really sure how to convert it to a .prn file retain column width without the wrapping in the text file. any suggestions would be highly appreciated. Thanks, Giri --- Message posted from http://www.ExcelForum.com/ How do y...

Exchange 2003 AD/GC Issue
I have 3 DC's (\\DC1, \\DC2, and \\DC3) in a single domain/forest enviornment. Both DC2 and DC3 are Global Catalog servers. When \\DC2 goes offline Outlook is unable to connect to Exchange until the Exchange server has been bounced and a domain prep has been run. Any ideas? -- Thanks. ~Ryan On Tue, 11 Oct 2005 07:40:17 -0700, Ryan Fitzgerald <RyanFitzgerald@discussions.microsoft.com> wrote: >I have 3 DC's (\\DC1, \\DC2, and \\DC3) in a single domain/forest >enviornment. Both DC2 and DC3 are Global Catalog servers. When \\DC2 goes >offline Outlook is unable...

XMLREADER or XMLDocument???
How do I read the attributes of this XML? I have a page with text boxes that i want to read these values in. notice there are 2 Parameter tags with the same attributes. Code would help <TranslationRecords> <TranslationRecord TrxID="1"> <ParameterCollection> <Parameter KeyName="FielDelimiterChar" KeyValue="29" /> <Parameter KeyName="SegmentDelimiterChar" KeyValue="30" /> </ParameterCollection> </TranslationRecord> </TranslationRecords> Thanks Try this as a template. It should be gene...

Create User Wizard Insert Issue
I have placed a create user wizard on a page and added two textbox fields in addition for First name (id = FirstName) and Last Name (id = LastName) However when I try to insert all the information into my created table all I get is errors. I've tried for hours to understand various web examples and just am missing something. Below is my vb code on my code behind page. I keep getting "NullReferenceException was unhandled by user code" My database table does not accept nulls for First or Last names. But since these values have always been provided when "testin...

Time Stamp issues
I am running SBS 2003 Std and am having an issue with the time stamp on emails. When I send a message to myself and look in the sent items the time stamp on it is exactly one hour behind the exchange server time. Is there someplace to set the time zone in exchange? Exchange takes the time zone of the server. What about the time on the client machine sending the mail? -- Ed Crowley Celebrating a decade of Exchange peer support "bddBG" <bddBG@discussions.microsoft.com> wrote in message news:C7E66D27-8103-4F4A-99FD-07423E1B259E@microsoft.com... >I am running SBS 2003 ...

Subclassing
Hello, Im very new to c++ programming so pardon me if this is a dumb question and my bad english. I made a subclass from CListBox. I want to handle all the list controls derived from this class on one function, for example, void CListBox_SC::OnRButtonUp(UINT nFlags, CPoint point) { ..... } on this function I want to manage the OnRButtonUp event, and with a switch or if statement, select the code to execute. The following does work: SetCurSel(ItemFromPoint(point, ifp)); but the following comparison is never true, (IDC_LST_TIPO is a resource for one of the ListBoxes) UINT currLst = It...

Customize the end user error page that CRM v4 issues?
In CRM v4, we can display the simplified error message to end users (default), or set Dev Errors on and view the error message with a stack trace. BUT, can I customize or replace the simplified End User error page that is displayed when Dev Errors are turned off? My client would like to display a page with his corporate style, phone #, etc..., with instructions to call their internal helpdesk. Thanks, Steve ...

Removing empty rows issue Please Help!
Hi Everyone, I have about 10 different tabs in same format in my workbook and having some difficulties with my macro. Basically, My macro runs through column("B:B") and if the cell is empty it will remove entire row, if not then it returns column D's value with matching row. Sub Clean() Dim ws As Worksheet, lngRow As Long For Each ws In Sheets For lngRow = ws.Cells(Rows.Count, "B").End(xlUp).Row To 1 Step -1 If ws.Range("B" & lngRow) = "" Then ws.Rows(lngRow).Delete Else ws.Range("D" ...

Page set up issues
I'm trying to make one 8.5 x 11 piece of paper into four different raffel tickets so I can print and cut into four. Subtract your top and bottom margin from 11, divide the number by 4. Assuming .5 margin, the tickets will be 2.5 each. Input this number in the page setup height box. Click "change copies per sheet." Input zero for the gaps, .05 as the top margin. You will have one ticket on your page. If you need a cutting line, surround the ticket with a rectangle, send it to the back. If your tickets have numbers, there is a tutorial here: http://www.publishermvps.com/Defa...

IMF install issues
I have just installed IMF on exchange server 2003 sp2 and configured it to archive. My problem is the install did not create the archive folder. According to the deplooyment guide the archive folder should be at %programfiles%\Exchsrvr\mailroot\vsi 1\UCEArchive I have tried reintalling IMF but the folder is just not being created. What should i do? I have begun to consider changing the archive location with the regisitry setting. could this work, am I just doing something wrong. Thanks in advance How did you reinstall IMF? Did you reinstall IMFv1? That's the version of IMF availab...

SP3 Issues
I created a database in Access 2003 which worked fine for months. My IT department installed Office SP2 on my machine and now I can't enter any data into the table which underpins my database. The queries, forms, etc all still work fine but when I try and enter data I get a bleep. I have a second PC which doesn't have SP2 installed, just basic Access 2003 and the database still functions fine on this one. They've tried upgrading to SP3 but still with the same problem. One thing that may or may not be relevant, on the the non-SP3 machine when I run the continuous form there&...

Custom Drawing CEdit : Subclassing
Hello experts, My objective is simple, but I'm not entirely sure what needs tweaking. I am using MSVC 6, and I would like to subclass the CEdit box so that it appears as the color-picker editbox of a PropertyGrid. There is a color box followed by three values. Like this: [###] 255; 192; 192 Where ### is just a color box representation of the value. So thus far, I've made a masked CEdit box, where I can edit the numbers (or click a button that visually sets the numbers from a different window), and I'm happy with that - but what I would like to do next is to subclass the dra...

Payables Issue
Ok So I know I am having a bad but I can't figure this issue out. User went in to Selct Checks (By the way this is V10) to run the check batch and in error allowed all the credits on an account to auto apply. Then she posted the batch and printed the remitanace. Of now she realizes that she should not have auto applied the credits but rather should have select certain credits and athen paid the remainder of the invoice with a check. For the life of me I can't figure out how to reverse what she has done. Any help would be appreciated. -- Fliehigh I hate those auto-applied c...

2003 Bug: Reports Won't Open, Printer Issue
Has anyone found a good solution to the "OpenReport Action Was Cancelled" error that has to do with printers? I'm especially hoping for help from an MVP or from a MS person. The error (detailed below) seems to be happening frequently here at my work. We have a fix that can get the Access databases back online (see below), but I'm hoping someone has a real fix that will stop this from happening. ------------------------------------------------- Here's the background: There have been a number of posts regarding MS Access 2003 databases that suddenly won't open reports....

Data Transfer Issues with remote site
Dear Developers, I am hoping one of you may have some suggestions on what may be causing this issue and provide some suggestions on how to reduce the occurrence of this issue. We have a .NET 1.1 Windows application that ties in with Great Plains running SQL Server 2000, using ADO .NET 1.1. The application is run on three sites – one local (main server) and two remote. I will call them Remote1 and Remote2 for the sake of this posting. In overview, the application provides services for filling orders. Orders are retrieved form the main server and order lines are posted for ver...

Date format issue when submitting from a userform to a spreadsheet
Hi, I have a userform that I've generated which routes dates onto a spreadsheet based on the users input. I am having a bit of a frustrating time with the dates, it would appear that in the process of moving the date from the userform to the spreadsheet some dates are switched/transposed. I'll give an example. If someone enters 09/02/2004 on the userform excel seems to look at 09 and assume it is a month and transposes the dates to 02/09/2004(this does not appear to be a US/UK format issues as I have already gone down that road). However, if the date 13/09/2004 is entered i...

OLE note issues
Hello All, We have had an issue with our OLE notes since going to version 10. When we attach a note it adds it in and to the network location where it is stored but when it is displayed there is no icon (even though we check display as icon). For example if I attach a scanned image of the customer PO to the sales order it will show the note icon on the sales order properly. When I look in the OLE container all I see is Acrobat Document as the title and no icon. I can open it fine but cannot rename it or get the icon to display. It has the same problem with all file types and I am a...

Synchronisation issue
Hello, I have a user using outlook 2000 on a laptop. His outlook keeps synchronizing even after removing OST files .. removed , reinstalled... recreated profile. It's very annoying. Any idea how to stop this synch? Thnx What is it synchronizing to? --� Milly Staples [MVP - Outlook] Post all replies to the group to keep the discussion intact. Due to the (insert latest virus name here) virus, all mail sent to my personal account will be deleted without reading. After searching google.groups.com and finding no answer, Ahmil asked: | Hello, I have a user using outlook 2000 on a laptop...

Encoding issues?
Sender on the Internet sends someone within my Exchange 2003 organization an email and all of the periods ( . ) have been replaced with "=2E". I would say it's just a minor nuisance but it is making the emails hard to read for the recipient. Every period is being replaced with the characters =2E, even the ones in the email address in the header information. I've had the sender change their mail format to Plain Text but haven't heard back from them yet. Any ideas as to what is causing this or how to correct it? Thanks. No ideas without more information about wha...

autosave issue
For some reason everytime I try to change the settings in autosave they never take. It will work fine while I'm working in the same worksheet but as soon as I close it out the settings are gone. Does anyone know how to make this autosave feature work properly? If you get the latest patches from Office Update this should be fixed. http://office.microsoft.com/officeupdate/ -- Jim Rech Excel MVP Thanks Jim >-----Original Message----- >If you get the latest patches from Office Update this should be fixed. > >http://office.microsoft.com/officeupdate/ > >-- >J...

Small business Accounting 2006
Hello All - I have SMall Business Accounting 2006, evertying thing was installed and running fine then i added the system to a 2003 SBS Server and now i keep getting this error: "General network error encountered. Connection to DB has been either turned off or server is not reachable. Please shut down application and try to log on again." I have uninstalled and reinstalled SBA 2006 six as well as SQL Desktop and am still unable to acceess the accounting software. THe software opens fine then it cant find the data base (review the error above). I get the error with ...

Help with subclassing a RichEditCtrl
Hi folks, I could use some help. As a side project I am trying to write a DLL that will extend the functionality of an existing application that I do not have source code for, i.e., some autocompletion functionality, word lookup, etc. In the actual DLL, I am going to have to inject it into the existing app and then use FindWindow or something like that to subclass the existing RichEditCtrl. I need to be able to process the WM_CHAR and WM_KEYDOWN messages only. I started out by creating my own sample project using a RichEditCtrl in my project to code my object. I've now moved everythin...

WM_CREATE for a subclass
Hi All, I am fairly new to C++, although I have developed OO windows applications in the past using CTD and Power Builder. I am developeing an edit class based on a CEdit. I am trying to trap the WM_CREATE message to modify the style of the window (i.e. to make is multiline). For some reason the control does not appear to be getting the WM_CREATE message ( or at least it is not implementing the handler I have for it). At present I create an edit control on a form and the Subclass the edit. This appears to work as my user defined menu is used and my color modifications appear as requir...