February, 2013

  • Microsoft Dynamics NAV Team Blog

    Add attachment stream on SMTP not always working

    • 0 Comments

    This week I did work on a support case where the partner mentioned that adding an attachment from a stream does not always work. The partner delivered a code unit that we used to further analyze the issue. As it was not necessary to further develop a fix for this, we decided to just post the outcome of that support request on a Public blog. You can read the original posting on the following blog:
    http://nav-magno.be/index.php/2013/02/add-attachment-stream-on-smtp-not-always-working/

    On that blog you can also download the code unit we used for debugging purposes.

    Credit should go to Joachim Carrein, working for iFacto who reported the issue to us.

    Regards,

    Marco Mels
    CSS EMEA

    This posting is provided "AS IS" with no warranties, and confers no rights

  • Microsoft Dynamics NAV Team Blog

    NAV 2013 - Reports may be difficult to read when printing over Terminal Services

    • 13 Comments

    === Blog updated on March 4th ====

    Updated with the good news that we now have a hotfix for this for Windows Server 2008 R2:

    Visual elements are displayed incorrectly etc... - KB 2768741.

    ===== end of update ===========

     

     

    In NAV 2013, if you run the Windows Client via a Terminal Server or Remote Desktop Connection (RDC) or some common 3rd party application host technology, reports may be difficult to read when you print them. Preview looks fine.

     

    A report could look like this in preview (OK):

     

     

     

    But in Print Layout rendering or when printing to paper it would look like this - notice it looks like the fonts have been scrunched and it's hard to read:

     

     

     

    When does this happen?

     

    It happens when

      A)  you run NAV 2013 via a Terminal Server or via Remote Desktop Connection (RDC), and

      B)  the screen resolution on the connection is not 4/3, and

      C)  the Terminal Server machine is running Windows 2008 including Windows 2008 R2.

     

     

    The screen resolution is the important thing here. If we use a screen resolution of 4/3 (=1.33333) then all works fine. So if my RDC looks like this then I don't have this issue:

     

    On this connection the screen resolution in my connection is 1024 by 768. 1024 / 768 = 1.33333, and everything is OK.

     

     

    But if I set the screen resolution on my RDC like this:

     

     

    Then my screen resolution = 1366 / 768 = 1.779.

    1.779 <> 1.33333 and then I have the problem.

     

     Why?

     

    The root of the problem lies in graphics rendering (GDI) in Windows 2008 when it tries to scale from a screen resolution which is not 1.33333. In Windows 2012, rendering was redesigned to take advantage of hardware acceleration and ActiveX as described in this article:

    Windows 8 graphics: Microsoft has hardware accelerated all the things

    So we do not have this problem if the host machine is running Windows 2012.

    NAV 2013 uses a newer version of Report Viewer which relies more on Windows GDI than previously, which is why we have only started seeing this problem on NAV 2013 installations.

     

     

    So what can we do?

    Based on the above there are three ways out of this problem:

    1)  Ensure that all users use a screen resolution of 4/3

    2)  Avoid a host machine trying to scale a client's resolution. For example:

      - Save the report to PDF, then print from the PDF document. PDF rendering is not affected by this issue.

      - Use server-side printing - for example make use of the Job queue and let NAS print reports. Then the server can ignore what resolution the client has.

      - Use other ways than Terminal Server to simplify client installations, such as ClickOnce or possibly "Remote Apps". In this way the client runs on the local machine and not on a host machine.

    3)  Upgrade the Terminal Server / RDC host machine to Windows 2012. Client machines do not need to be upgraded.

     

     

    Workarounds 1) and 2) could be hard to enforce in some cases. But knowing about this issue, hopefully the option of using Windows 2012 can be considered.

     

     

     We will post updates here if and when we find any further details around this issue!

     

     

     

     

     

     

     

  • Microsoft Dynamics NAV Team Blog

    SMTP Server component in Dynamics NAV, latest news, latest patches and some configuration challenges with Office 365

    • 2 Comments

    It has been a while since I last wrote a posting about the SMTP Server component that we first shipped with Dynamics NAV 5.0. Let’s recap the older posting first as it does list a complete list of patches that one should have applied already and let me take the opportunity to also discuss some previous support cases that were filed at our support service regarding specific Italian localization that only applies to Italian partners / customers. Last but not least some support cases were filed at our support service in regards to Office 365. Let’s also discuss these.

    The previous posting can be found here: Double impersonation within a three tier environment and the SMTP Server setup in Microsoft Dynamics NAV. A later patch did came out as well: 2811780 where we added some code to code unit 400 to allow a timer to be configured via C/AL. Previous support cases were filed by Italian partners requesting if they could use our SMTP Server component with Posta Elettronica Certificata which is an alternate connection configuration via SMTP/SSL over port 465. More information about PEC can be found here: IETF and Wikipedia

    The SmtpClient.EnableSsl property is responsible for this and is discussed on MSDN. Here you can read the following:

    An alternate connection method is where an SSL session is established up front before any protocol commands are sent. This connection method is sometimes called SMTP/SSL, SMTP over SSL, or SMTPS and by default uses port 465. This alternate connection method using SSL is not currently supported.

    Last but not least Microsoft Support received several requests from partners how they should configure Dynamics NAV SMTP Server component in combination with Office 365. The good news is that this is possible, but there are some challenges, especially when you use the SMTP Server component in combination with Document Approval system that we shipped with Dynamics NAV. Let’s assume the latter. The prerequisites are:

    • You need to apply all patches listed on Double impersonation within a three tier environment and the SMTP Server setup in Microsoft Dynamics NAV
    • You need to have administrative access to Office 365 in combination with administrative access to Exchange Online if you also want to setup Document Approval
    • You need to download the PowerShell commands from here  to configure the SendAs permissions for the accounts because “Any e-mails sent by the application / device must be from the authenticated account above“
    • You then need to follow instructions written here

    Let’s show you how this does work. When you start the PowerShell, a box is shown to you with the following line: “PS C:\Windows\system32>”. After that line, you can type the commands one at a time.

     

    First command:

    PS C:\Windows\system32> Set-Executionpolicy -ExecutionPolicy Unrestricted

    Execution Policy Change
    The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
    you to the security risks described in the about_Execution_Policies help topic at
    http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?

    [Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): y

    Second command:

    PS C:\Windows\system32> $LiveCred = Get-Credential

    cmdlet Get-Credential at command pipeline position 1
    Supply values for the following parameters:
    Credential

    Third command:

    PS C:\Windows\system32> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

    WARNING: Your connection has been redirected to the following URI:
    "https://pod51014psh.outlook.com/powershell-liveid?PSVersion=3.0 "
    WARNING: Your connection has been redirected to the following URI:
    "https://db3prd0411psh.outlook.com/powershell-liveid?PSVersion=3.0 "

    Fourth command:

    PS C:\Windows\system32> Import-PSSession $Session

    ModuleType Name                                ExportedCommands

    ---------- ----                                ----------------

    Script     tmp_2b2tb1qp.44s                    {Add-AvailabilityAddressSpace, Add-DistributionGroupMember, Add-Mailb...

    Fifth command:

    PS C:\Windows\system32> Add-RecipientPermission "Kevin Mels" -AccessRights SendAs -Trustee "Marco Mels"

    Confirm
    Are you sure you want to perform this action?
    Adding recipient permission 'SendAs' for user or group 'Marco Mels' on recipient 'Kevin Mels'.
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): Y

    Identity                Trustee                 AccessControlType       AccessRights            Inherited
    --------                -------                 -----------------       ------------            ---------
    kevinmels               marcomels               Allow                   {SendAs}                False

    Sixth command:

    PS C:\Windows\system32> Add-RecipientPermission "Sean Bentley" -AccessRights SendAs -Trustee "Marco Mels"

    Confirm
    Are you sure you want to perform this action?
    Adding recipient permission 'SendAs' for user or group 'Marco Mels' on recipient 'Sean Bentley'.
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): Y

    Identity                Trustee                 AccessControlType       AccessRights            Inherited
    --------                -------                 -----------------       ------------            ---------
    seanbentley             marcomels               Allow                   {SendAs}                False

    PS C:\Windows\system32>

    Document Approval setup looks like this:

    clip_image001

    clip_image002

    PS C:\Windows\system32> Remove-PSSession $Session

    clip_image003

     

    To summarize, Marco Mels (marcomels@bergmanz.onmicrosoft.com) configured in the SMTP settings is the trustee and you need to add SendAs recipient for all users that are in the Approval User Setup form.

    Some other commands to verify the setup if needed:

     

    PS C:\Windows\system32> Get-RecipientPermission "Sean Bentley" -AccessRights SendAs

    Identity                     Trustee                               AccessControlType       AccessRights            Inherited
    --------                        -------                                  -----------------       ------------            ---------
    seanbentley             NT AUTHORITY\SELF       Allow                   {SendAs}                False
    seanbentley             marcomels                        Allow                   {SendAs}                False

    The Windows Powershell must be started via “Run as Administrator”and you need to specify user credentials within Office365 that does have Administrator permissions. Truly hope this does help you to configure SMTP Server component in Dynamics NAV in combination with Office 365.

    Regards,

    Marco Mels
    CSS EMEA

    This posting is provided "AS IS" with no warranties, and confers no rights

  • Microsoft Dynamics NAV Team Blog

    Real-Life Story from a Consultant using RapidStart Services for Microsoft Dynamics NAV for the First Time

    • 0 Comments

    I recently talked to Microsoft partner ChargeLogic about their own in-house implementation using Microsoft Dynamics RapidStart Services for Microsoft Dynamics NAV. I found the story inspiring and wanted to share it with you here.

    ChargeLogic recently spun off from their parent company and needed their own ERP system. As solution experts, the decision to use Microsoft Dynamics NAV was obvious because they knew the product inside and out. Yet, according to Jon Cooper, President at ChargeLogic, they still faced one big challenge: lack of time.

    “With our already busy schedules, combined with all the work involved in starting a new company, finding time to actually sit down and work on our own internal systems was a challenge,” Cooper says. “We wanted implementation to be quick and painless.”

    How to make implementation quick and painless

    This is where RapidStart Services for Microsoft Dynamics NAV came into the picture. It is an integrated tool and a native part of Microsoft Dynamics NAV that helps speed up the implementation process and facilitates better control of the whole process.

    It includes Project Overview, Questionnaires, Master Data Import and Configuration Packages. Using the basic configuration package for the implementation of Microsoft Dynamics NAV 2013 made implementation straightforward for Cooper and ChargeLogic right from the start.

    “When I installed NAV 2013 on our new server and logged in, it brought up the RapidStart Role Center, which was enormously helpful. Not having used RapidStart before, I started filling out the G/L Questionnaires. I quickly finished and moved through the Sales, Purchasing, and Inventory Questionnaires. I was able to leave most of the settings at their default values and only changed a few values along the way.”

    Not a single bit of data had to be re-entered

    Another aspect of RapidStart Services for Microsoft Dynamics NAV that made things easier was the data import aspect.

    “Once I had finished answering all the questions, I moved on to the Configuration Worksheets. All of our data from the old company was in a NAV 3.60 database, so I simply filtered on the data that was applicable to our new company and copied and pasted it from NAV 3.60 into Excel. I created worksheets for my Item and my Customer masters. I also pulled Customer and Item ledger entries into a worksheet.”

    Cooper exported the Customer and Item masters and journals as templates, made some slight adjustments to the fields in NAV 2013, and created an updated template. He then simply copied and pasted the data from their old system into the templates and imported it into Microsoft Dynamics NAV 2013. RapidStart identified some validation errors, which were quickly corrected and reprocessed.

    “My Customers, Items, and their respective histories were in my new NAV 2013 system, and I didn’t have to data-enter a thing,” Cooper says.

    Much less demanding than expected

    Cooper admits that he had anticipated that the implementation would take ten to fifteen days and he would need to make use of three people in that time.

    “With RapidStart, I performed the entire implementation myself in less than two days. I’m a developer, and I know NAV very well, but this was my first implementation. I was very impressed with how easily RapidStart Services got me going and walked me through the implementation process,” Cooper says.

    ChargeLogic is an Independent Software Vendor providing the PCI-Compliant solutions integrated with Microsoft Dynamics NAV. ChargeLogic’s suite of products include ChargeLogic Payments, the PCI-compliant payment processing solution for NAV, ChargeLogic Connect, the cloud-based service for easy e-commerce integration with NAV and secure payment management, and ChargeLogic Shipping, the most intelligent, integrated shipping solution with NAV. ChargeLogic is Certified for Microsoft Dynamics (CfMD) and is a Validated Payment Application as certified by the PCI Security Standards Council. ChargeLogic sells, distributes, and supports their software through a partner channel comprised of Microsoft Enterprise Resource Planning partners with a high degree of technology competence and expertise. As a Microsoft partner, ChargeLogic uses this knowledge to build the highest quality solutions for Microsoft Dynamics NAV.

     

    Jannik Bausager

    Director – Microsoft Dynamics NAV product marketing

     

  • Microsoft Dynamics NAV Team Blog

    Customers and Partners Save Time when Using RapidStart Services for Microsoft Dynamics NAV

    • 0 Comments

    RapidStart Services for Microsoft Dynamics NAV is an integrated tool and a native part of Microsoft Dynamics NAV that helps speed up the implementation process and facilitates better control of the whole process. It includes Configuration Packages, Project Overview, Questionnaires, and Master Data Import.

     

    TRIMIT gains complete control of the implementation process

    RapidStart Services for Microsoft Dynamics NAV helps TRIMIT Fashion provide a complete setup of a new company. TRIMIT use it to configure the application. It gives them an overview of which areas are being processed and which are already completed, who is responsible for setting up an application area and what else will be affected by the specifics of the setup.

    Better overview promotes better communication

    Kitty Bisseling, Partner Supporter at TRIMIT, finds that “using the Project Overview, the customer is able to get a better overview of the setup work that still needs to be done.”

    According to Alexander Pontoppidan Thyssen, Business Consultant at CORNATOR, RapidStart Services streamlines communication: “RapidStart Services has helped improve communication both internally as well as externally because people tend to be more aligned with the “why” and the “how” when they address the issues and challenges that they come across when implementing,” Thyssen says.

    Standardization saves time

    RapidStart Services comes with a standardized Configuration Package with out-of-the-box general setup data, such as currency codes, posting groups, VAT templates, chart of accounts, payment terms, and countries.

    For their TRIMIT Fashion solution, TRIMIT has also extended it with Configuration Packages specifically for Fashion Wholesale companies. This extends the pre-set data with fashion-specific data templates of Matrices for Color and Sizes. The standardized Configuration Packages shortens the implementation time for TRIMIT’s customers by providing them with predefined fashion-specific colors, sizes, washing label descriptions and more.

    Especially for smaller companies, the whole setup of a new Company can be adopted, so the customers can start up very quickly; this really saves time for the customer and for the consultant,” says Bisseling.

    The standardized Configuration Packages have improved efficiency for CORNATOR’s customers: “Knowledge and thereby efficiency is in general improved across departments and between consultants, because we use the same data foundation across implementations”, says Thyssen.

    Shorter learning curve

    RapidStart Services also includes Questionnaires, which TRIMIT has used to ask specific questions about the fashion company being setup. By offering out-of-the-box questionnaires, RapidStart Services makes it possible for everyone to start up their own company with only minimal training required.

    It is also a great tool for guiding the customers to what they need to do; even when the consultant is not present,” Bisseling says.

    Greater flexibility for the future

    RapidStart Services for Microsoft Dynamics NAV is a native part of the product, which means that it is available both on-premise and in the cloud, giving customers more flexibility. Bisseling believes that in the future, when more companies start to adopt the SaaS concept as a way of working with more standard and less customized functionality, RapidStart Services will help guide their customers through the implementation process.

     


    TRIMIT is an ISV (Independent Software Vendor) and a Gold Certified Microsoft Dynamics NAV Partner specialized in fashion, furniture, product configuration, and trade and distribution. TRIMIT, an industry solution designed and built within Microsoft Dynamics NAV, enhances the ERP solution with a wealth of industry-specific functionality to manage design, cuts, colors, sizes, and more. The ERP system also integrates with Microsoft Excel for reporting and business planning and with Microsoft Word for importing customer information automatically into forms, letters, and marketing communications. The TRIMIT Solution helps fashion and furniture Companies handle a greater number of product variants by simplifying product configuration. Together, Microsoft Dynamics NAV and the industry solution, TRIMIT help companies run their business by providing them with configured Master Data Templates, including Matrices for Color and Sizes.

    In 2008, the company CORNATOR divided into two independent companies, CORNATOR and TRIMIT. CORNATOR continued to support the Danish market as a VAR (Value Added Reseller), and TRIMIT continued to develop "state of the art" functionality for TRIMIT solutions and to build an international partnership strategy that focuses on the fashion and furniture industries. All 70 employees of  CORNATOR work with Microsoft Dynamics NAV.

Page 1 of 1 (5 items)