Sales Order

Navision Articles

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

This post has 3 Replies | 2 Followers

Top 500 Contributor
Posts 45
425 Points
Joined: Apr 14, 2008
Last Online:
Apr 16, 2009 16:24
siya10 Posted: Aug 11, 2008 16:02
How helpful was this post/question? Please rate here:

When creating a Sales Order i need a button that writes this order to a text file before i post it,please help with a piece of a code that can do this.

My idea was to create a button that call a dataport that will export the order to a text file,it looks like its a long route to do it,please help with a shortcut to do it.Angry

Top 75 Contributor
Posts 343
5,437 Points
Joined: Jul 14, 2006
Last Online:
Mar 15, 2010 0:00
Location: Atlanta, Georgia
girish.joshi replied on Aug 11, 2008 17:18
How helpful was this comment/solution? Please rate here:

Does it need to be read programatically?  Here are a few options:

  1. Click SaveAsHtml before running the report.  This can also be done programatically.
  2. If using 5.0 click, Export the report to Word and then when in word save as text.
  3. Save the report as a .pdf file (many examples online).  Then in the .pdf run save as text.
  4. Use an XML Port instead of a dataport.  99008515 Outbound Sales Order Confirm.  is probably pretty close to what you need.  You can use a style sheet to strip out the unwanted XML.

 

Top 500 Contributor
Posts 45
425 Points
Joined: Apr 14, 2008
Last Online:
Apr 16, 2009 16:24
siya10 replied on Aug 14, 2008 13:01
How helpful was this comment/solution? Please rate here:

Thanks it worked!

Top 75 Contributor
Posts 343
5,437 Points
Joined: Jul 14, 2006
Last Online:
Mar 15, 2010 0:00
Location: Atlanta, Georgia
girish.joshi replied on Aug 14, 2008 13:57
How helpful was this comment/solution? Please rate here:

You're welcome.  Which option did you go with?

Page 1 of 1 (4 items) | Get this RSS feed | Bookmark and Share