<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3699854190142441111</id><updated>2012-02-16T08:32:18.155+01:00</updated><category term='Reports'/><title type='text'>Dynamics Ax</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://internamics.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3699854190142441111/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://internamics.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Gerrit</name><uri>http://www.blogger.com/profile/10458334881985704165</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3699854190142441111.post-7135093522099255263</id><published>2010-05-25T22:01:00.001+02:00</published><updated>2010-05-25T22:01:47.422+02:00</updated><title type='text'>PDF EP error - section overlaps footer</title><content type='html'>&lt;p&gt;&lt;u&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;/u&gt; &lt;/p&gt;  &lt;p&gt;Reports generated as PDF on the portal, such as the invoice, may result in a blank page on a Dynamics Ax 4.0 SP2. &lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;Context&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;The client browser requesting the PDF file results in a blank page. No error to the client, how nice. When the user calls, a system administrator checks the eventlog to find the following error (translated from Dutch): &lt;/p&gt;  &lt;p&gt;“An X++ exception occured. Section overlaps the pageFooter (the section could be to large)”. You check the report in a client: no problem. You check the site: problem. &lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;Cause&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;The cause of this exception is a known bug in Dynamics Ax. Check &lt;a href="https://mbs.microsoft.com/knowledgebase/KbDisplay.aspx?WTNTZSMNWUKNTMMYXUPYZQPOUXNXSPSYPXNNTTQKXNPXRPRP"&gt;Hotfix Rollup 95338&lt;/a&gt;&amp;#160; at microsoft (requires partnersource login). But since the report contains a footer, the PDF generation failes because the footer is overlaped by the content of the body. I figured this out by removing all footers and finding a 14 page counting invoice (big customer ;-) ) resulting in a single page PDF. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Solution&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The best solution would be to install the kernel rollup.Microsoft doesn’t release these rollups just for the fun of it. However, this will result in testing of the entire application, since nobody exactly knows that objects are affected with a new DIS layer. &lt;/p&gt;  &lt;p&gt;If you just want to fix this bug, see the class EPSendDocument, method makeDocument, line 31:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_viAM6K7htfw/S_wsqHpNYYI/AAAAAAAAACo/_GrGOSDvXSs/s1600-h/image%5B2%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_viAM6K7htfw/S_wsqiHv7hI/AAAAAAAAACs/NSdF338CO1c/image_thumb.png?imgmax=800" width="244" height="46" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The virtualPageHeight is default ‘0’ (zero) in Dynamics Ax 4.0 SP2. The Hotfix of microsoft just changes this value to ‘–1’. Do it yourself, it will do the job just as good in the CUS layer. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Gerrit&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3699854190142441111-7135093522099255263?l=internamics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://internamics.blogspot.com/feeds/7135093522099255263/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://internamics.blogspot.com/2010/05/pdf-ep-error-section-overlaps-footer.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3699854190142441111/posts/default/7135093522099255263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3699854190142441111/posts/default/7135093522099255263'/><link rel='alternate' type='text/html' href='http://internamics.blogspot.com/2010/05/pdf-ep-error-section-overlaps-footer.html' title='PDF EP error - section overlaps footer'/><author><name>Gerrit</name><uri>http://www.blogger.com/profile/10458334881985704165</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_viAM6K7htfw/S_wsqiHv7hI/AAAAAAAAACs/NSdF338CO1c/s72-c/image_thumb.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3699854190142441111.post-2751543110811354684</id><published>2010-05-25T21:44:00.001+02:00</published><updated>2010-05-25T22:04:46.303+02:00</updated><title type='text'>PDF generated on portal has dots</title><content type='html'>&lt;p&gt;&lt;u&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;/u&gt; &lt;/p&gt;  &lt;p&gt;Several reports can be generated as PDF on the portal. For instance the sales invoice report. When a design is modified, you may encounter dots where normal text is expected. &lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;Context&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;This problem resides only on the portal generated PDF files. When an employee generates the same report using an Dynamics Ax client, the text is readable.&amp;#160;&amp;#160; This problem exists in Dynamics Ax 4.0 SP2. &lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;A customer has modified the sales invoice with the following result on the portal:&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;a href="http://lh6.ggpht.com/_viAM6K7htfw/S_woicUg1mI/AAAAAAAAACQ/vntzUQuNsTI/s1600-h/image2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_viAM6K7htfw/S_wojB5nykI/AAAAAAAAACU/dJl85KUFrAw/image_thumb.png?imgmax=800" width="244" height="78" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The total amount are dots… when you select the text and paste it to notepad, the result is readable but still mixed up.&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;Cause&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;The cause could be a wrong setup of the font for the value. In the design for the total element I found the following properties:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_viAM6K7htfw/S_wommmWWiI/AAAAAAAAACY/2WjH3YGXEuI/s1600-h/image5.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_viAM6K7htfw/S_wonNLhfHI/AAAAAAAAACc/B5rUWDWUpN4/image_thumb1.png?imgmax=800" width="244" height="46" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;You see the Font property is bold, but no value entered… but when you select the property:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_viAM6K7htfw/S_wonxi5wvI/AAAAAAAAACg/N0hj6fv8lgo/s1600-h/image8.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_viAM6K7htfw/S_wooYKvoxI/AAAAAAAAACk/eolJnlPQyH4/image_thumb2.png?imgmax=800" width="244" height="46" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;A space is present. The PDF generator for the portal cannot handle this and results in dots in the PDF file. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Solution&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Find the element on the design and check the font property. Clear the space, so the font property name is no longer bold. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Gerrit&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3699854190142441111-2751543110811354684?l=internamics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://internamics.blogspot.com/feeds/2751543110811354684/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://internamics.blogspot.com/2010/05/pdf-generated-on-portal-has-dots.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3699854190142441111/posts/default/2751543110811354684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3699854190142441111/posts/default/2751543110811354684'/><link rel='alternate' type='text/html' href='http://internamics.blogspot.com/2010/05/pdf-generated-on-portal-has-dots.html' title='PDF generated on portal has dots'/><author><name>Gerrit</name><uri>http://www.blogger.com/profile/10458334881985704165</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_viAM6K7htfw/S_wojB5nykI/AAAAAAAAACU/dJl85KUFrAw/s72-c/image_thumb.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3699854190142441111.post-6987208409363407397</id><published>2009-07-04T08:48:00.001+02:00</published><updated>2009-07-08T14:20:35.036+02:00</updated><title type='text'>No systemvariables, globalcache error</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Problem&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;In an Ax 4.0 environment, during startup of the client a weird message is printed (not info-log, translated from dutch):&lt;/p&gt;  &lt;p&gt;No general systemvariables. Stacktrace: infolog\globalcache (line 3). No forms can be opened, from anywhere (main menu, options, about, etc.) When the client is closed, the client crashes (send / do not send). &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Context&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Two servers, AOS-A, AOS-B. Identical in hardware, no mayor differences between installed updates and software. Both with an Ax 4.0 SP1 AOS, and a kernel rollup (kb-935288). One client machine (Client-C) with Ax 4.0 SP2 client. Client-C has config files for the different environments. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;When connecting to AOS-A, the system fails with the ‘no general systemvariables’. Debugging (placing a breakpoint in info.globalCache()) shows the globalCache variable to be ‘?’. Closing the Ax client is only possible now by terminating the ax32.exe client via the task manager. &lt;/p&gt;  &lt;p&gt;When connecting to AOS-B, no problems occur and the system can be used as expected. &lt;/p&gt;  &lt;p&gt;Reconnecting to the AOS-A environment, the client results in the same errors. Closing the client will crash, with a send / do not send. An error is logged in the eventlog:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_viAM6K7htfw/Sk77IKn4J-I/AAAAAAAAACE/m1QRoXUx5e4/s1600-h/image3.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_viAM6K7htfw/Sk77JNccIYI/AAAAAAAAACI/Y4SEfOQWDds/image_thumb1.png?imgmax=800" width="303" height="336" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I tried stopping and starting (not restarting, even though which is essentially the same…) the AOS service. No luck… &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Cause&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Since I did not yet install any debugging tools, I could not determine the exact reason of the client-crash. The error in the eventlog was insufficient to make any judgments. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Solution&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;To bad, I cannot explain the cause of this error message. What I did was modify the AOS-A environment that was having this problem to read a different Ax application. With the new application, the system worked. No recompile, no synchronize… I just closed the client with no error. I configured the system to read the previous application files, expecting the error… but no. The Axapta gods had something else in mind. The system worked… &lt;/p&gt;  &lt;p&gt;It is not worth the name ‘solution’, but if anyone ever encounters this problem, try temporarily using a different application. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Gerrit&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3699854190142441111-6987208409363407397?l=internamics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://internamics.blogspot.com/feeds/6987208409363407397/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://internamics.blogspot.com/2009/07/no-systemvariables-globalcache-error.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3699854190142441111/posts/default/6987208409363407397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3699854190142441111/posts/default/6987208409363407397'/><link rel='alternate' type='text/html' href='http://internamics.blogspot.com/2009/07/no-systemvariables-globalcache-error.html' title='No systemvariables, globalcache error'/><author><name>Gerrit</name><uri>http://www.blogger.com/profile/10458334881985704165</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_viAM6K7htfw/Sk77JNccIYI/AAAAAAAAACI/Y4SEfOQWDds/s72-c/image_thumb1.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3699854190142441111.post-7237961917468724388</id><published>2009-06-20T12:26:00.001+02:00</published><updated>2009-06-20T12:36:22.005+02:00</updated><title type='text'>Access to a restored Ax environment</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Problem&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;After you restore an Ax database from an unavailable domain, you get the following error:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_viAM6K7htfw/Sjy5Rqnj8wI/AAAAAAAAABk/cVzm9667N60/s1600-h/image15.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_viAM6K7htfw/Sjy5R0u4UXI/AAAAAAAAABo/perMmqiUl5k/image_thumb7.png?imgmax=800" width="393" height="87" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Even the domain administrators do not gain access.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Context&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;User in Ax are link to the domain controller for which the system is installed. The users are ‘imported’ into Ax, resulting in the user actually be able to startup an Ax client, logging into Ax and performing actions for which the user has been granted access in Ax. &lt;/p&gt;  &lt;p&gt;This information, which user in which domain is allowed to perform which action is part of the Ax database. This includes any trusted domains, for example in case of a traditional perimeter network. &lt;/p&gt;  &lt;p&gt;But what if you restore an Ax database that was part of another domain? Even if you are the domain administrator, you will get the ‘You are not a recognized user of Microsoft Dynamics Ax. Contact your system administrator for help.’ message.&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Solution&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The reason for this error is that the system only recognizes users from the old domain. This can be solved to updating the data directly using the database manager. In case of MS SQL server:&lt;/p&gt;  &lt;p&gt;- Go to the Ax database. You can determine which database instance and database is used by checking the AOS configuration. &lt;/p&gt;  &lt;p&gt;- Find the dbo.USERINFO table&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_viAM6K7htfw/Sjy5SKjJh8I/AAAAAAAAABs/JGW8yrXnIAs/s1600-h/image2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_viAM6K7htfw/Sjy5STSHl8I/AAAAAAAAABw/Eshba-UMmag/image_thumb.png?imgmax=800" width="179" height="50" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;- Open this table and find the record with ID value ‘Admin’. This user has in a normal scenario all rights, but may differ per installation. You can also use SQL to update the record, what ever makes you happy. &lt;/p&gt;  &lt;p&gt;- Update the following fields to reflect the current domain credentials. Bottom two lines can be ignored in this screenshot, the top line has the ID ‘Admin’ in this example:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_viAM6K7htfw/Sjy5SjGo-XI/AAAAAAAAAB0/1hMX59Elpy0/s1600-h/image8.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_viAM6K7htfw/Sjy5S8hIXwI/AAAAAAAAAB4/oHsqSJ9r0Ys/image_thumb4.png?imgmax=800" width="390" height="67" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;- SID – The &lt;strong&gt;S&lt;/strong&gt;ecurity &lt;strong&gt;Id&lt;/strong&gt;entifier of the account specified in the networkdomain and networkalias. See section ‘Get your SID’.&lt;/p&gt;  &lt;p&gt;- NETWORKDOMAIN – you current login domain&lt;/p&gt;  &lt;p&gt;- NETWORKALIAS – your current windows login name&lt;/p&gt;  &lt;p&gt;- You might want to make sure the field ‘ENABLED’ has the value 1. Otherwise the user is disabled, and you will still not be able to login. &lt;/p&gt;  &lt;p&gt;- Save the record&lt;/p&gt;  &lt;p&gt;- Open Ax&lt;/p&gt;  &lt;p&gt;- Create your own users / import from the Domain. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Get your SID&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Create a file with the extension .VBS. Copy the following info:&lt;/p&gt;  &lt;p&gt;--------------------&lt;/p&gt;  &lt;p&gt;strComputer = &amp;quot;.&amp;quot;    &lt;br /&gt;Set objWMIService = GetObject(&amp;quot;winmgmts:\\&amp;quot; &amp;amp; strComputer &amp;amp; &amp;quot;\root\cimv2&amp;quot;) &lt;/p&gt;  &lt;p&gt;Set objAccount = objWMIService.Get _(&amp;quot;Win32_UserAccount.Name='&amp;lt;user&amp;gt;',Domain='&amp;lt;domain&amp;gt;'&amp;quot;)    &lt;br /&gt;Wscript.Echo objAccount.SID&lt;/p&gt;  &lt;p&gt;---------------------&lt;/p&gt;  &lt;p&gt;Replace &amp;lt;user&amp;gt; with your user name, and &amp;lt;domain&amp;gt; with the domain. This script can be run from any computer in the domain, it does not have to be the domain controller.&amp;#160; A popup will appear with your SID:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_viAM6K7htfw/Sjy5TG3JK8I/AAAAAAAAAB8/bnrDcw7qSQY/s1600-h/image11.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_viAM6K7htfw/Sjy5TXPv9MI/AAAAAAAAACA/9n04069xuyw/image_thumb5.png?imgmax=800" width="244" height="87" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3699854190142441111-7237961917468724388?l=internamics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://internamics.blogspot.com/feeds/7237961917468724388/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://internamics.blogspot.com/2009/06/access-to-restored-ax-environment.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3699854190142441111/posts/default/7237961917468724388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3699854190142441111/posts/default/7237961917468724388'/><link rel='alternate' type='text/html' href='http://internamics.blogspot.com/2009/06/access-to-restored-ax-environment.html' title='Access to a restored Ax environment'/><author><name>Gerrit</name><uri>http://www.blogger.com/profile/10458334881985704165</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_viAM6K7htfw/Sjy5R0u4UXI/AAAAAAAAABo/perMmqiUl5k/s72-c/image_thumb7.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3699854190142441111.post-1821263313455542407</id><published>2009-04-28T14:26:00.001+02:00</published><updated>2009-04-28T21:53:45.898+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reports'/><title type='text'>Sending a report as PDF with embedded fonts has no extension</title><content type='html'>&lt;u&gt;&lt;strong&gt;     &lt;br /&gt;Problem&lt;/strong&gt;&lt;/u&gt;   &lt;p&gt;In Dynamics Ax 4.0 SP1, when the report is send as a PDF file with embedded fonts, the extension .PDF is not added to the file name of the attachment. &lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;Context&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;When a report is generated, any kind of report, the option is provided to send the document in a specific format by mail. There are two options when it comes to PDF:&lt;/p&gt;  &lt;p&gt;- PDF&lt;/p&gt;  &lt;p&gt;- PDF with embedded fonts&lt;/p&gt;  &lt;p&gt;The second type will add all used fonts to the PDF file itself, so the receiving client does not have to have all fonts used in the document. This is only useful if certain non-standard fonts are used like barcode fonts and such. The document will become quite big, compared to the ‘plain’ PDF file. &lt;/p&gt;  &lt;p&gt;When sending a report via mail, a file is generated and attached to the mail. This file contains the extension related to the chosen file format, so the receiver knows what to do with it. &lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;When printing the invoice of a sales order, the following dialog appears:&lt;/p&gt;  &lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_viAM6K7htfw/Sfb3LBP187I/AAAAAAAAAAs/8fyv4b3pvOQ/s1600-h/printoptions.PNG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5329718977725068210" style="width: 400px; cursor: pointer; height: 318px" alt="" src="http://2.bp.blogspot.com/_viAM6K7htfw/Sfb3LBP187I/AAAAAAAAAAs/8fyv4b3pvOQ/s400/printoptions.PNG" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Note the selection &lt;em&gt;PDF (embed fonts)&lt;/em&gt;. &lt;/p&gt;  &lt;p&gt;When pressing OK, the following mail is generated:&lt;/p&gt;  &lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_viAM6K7htfw/Sfb3TMTM89I/AAAAAAAAAA0/SN8WfJ9IiJE/s1600-h/mail.PNG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5329719118130901970" style="width: 400px; cursor: pointer; height: 381px" alt="" src="http://1.bp.blogspot.com/_viAM6K7htfw/Sfb3TMTM89I/AAAAAAAAAA0/SN8WfJ9IiJE/s400/mail.PNG" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Note that the attachment is called &lt;em&gt;axaptareport&lt;/em&gt;, and not the desired &lt;em&gt;axaptareport.pdf&lt;/em&gt;. &lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;Cause&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;The reason why there is no extension is a piece standard Dynamics Ax software. Class &lt;em&gt;Info&lt;/em&gt;, method &lt;em&gt;reportSendMail&lt;/em&gt;:&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family: courier new"&gt;void reportSendMail(PrintJobSettings p1)     &lt;br /&gt;{      &lt;br /&gt;SysINetMail m = new SysINetMail(); &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family: courier new"&gt;str fileName = 'axaptareport'; &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family: courier new"&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;if (p1.format() == PrintFormat::ASCII)     &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;//fileName = &lt;/span&gt;&lt;span style="font-family: courier new"&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;subStr(p1.fileName(),strLen(p1.fileName())-3,-999)+'TXT';     &lt;br /&gt;fileName = fileName + '.txt';      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;else if (p1.format() == PrintFormat::RTF)     &lt;br /&gt;//fileName = subStr(p1.fileName(),strLen(p1.fileName())-3,-999)+'RTF';      &lt;br /&gt;fileName = fileName + '.rtf';      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;else if (p1.format() == PrintFormat::HTML)     &lt;br /&gt;//fileName = subStr(p1.fileName(),strLen(p1.fileName())-3,-999)+'HTM';      &lt;br /&gt;fileName = fileName + '.htm';      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;else if (p1.format() == PrintFormat::PDF)     &lt;br /&gt;//fileName = subStr(p1.fileName(),strLen(p1.fileName())-3,-999)+'PDF';      &lt;br /&gt;fileName = fileName + '.pdf'; &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family: courier new"&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;m.sendMailAttach(p1.mailTo(),p1.mailCc(), p1.mailSubject(),'axapta report', true, p1.fileName(), fileName);     &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;&lt;/span&gt;&lt;span style="font-family: courier new"&gt;//m.sendMailAttach('','', '','Axapta report', TRUE, p1.fileName(), fileName); &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family: courier new"&gt;}&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;Personally, I would not have written this method as such. A nice example to show the benefits of a &lt;em&gt;case&lt;/em&gt; statement. But that is not the issue here. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Solution&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;In order to leave as much of standard Ax as possible, change line 16 of the method &lt;em&gt;reportSendMail&lt;/em&gt; of the &lt;em&gt;Info&lt;/em&gt; class to:&lt;/p&gt; &lt;span style="font-family: courier new"&gt;else if (p1.format() == PrintFormat::PDF || p1.format() == PrintFormat::PDF_EMBED_FONTS ) &lt;/span&gt;  &lt;br /&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Gerrit&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3699854190142441111-1821263313455542407?l=internamics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://internamics.blogspot.com/feeds/1821263313455542407/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://internamics.blogspot.com/2009/04/sending-report-as-pdf-with-embedded.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3699854190142441111/posts/default/1821263313455542407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3699854190142441111/posts/default/1821263313455542407'/><link rel='alternate' type='text/html' href='http://internamics.blogspot.com/2009/04/sending-report-as-pdf-with-embedded.html' title='Sending a report as PDF with embedded fonts has no extension'/><author><name>Gerrit</name><uri>http://www.blogger.com/profile/10458334881985704165</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_viAM6K7htfw/Sfb3LBP187I/AAAAAAAAAAs/8fyv4b3pvOQ/s72-c/printoptions.PNG' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
