This project has moved and is read-only. For the latest updates, please go here.

Wanted Add GUI

Jul 5, 2011 at 11:20 AM

I am trying to create a module with C# 2008 GUI works with the following way.

 

1) User Selects ERA file can be .835 or .txt file.

2) User Will select a transform of .XSLT template to parse based on the rules implemented in that .XSLT  This can be changes based on the payer wise. Which means User will create 1 .XSLT for each of the payer and save it on his PC.

3) .XSLT should be read dynamically rather than added to the project as static.

4) After transforming the data should be loaded to DataTable or Dataset to export to database.

 

Where as i am failing in step 2 and 4. XSLT is shwoing as null if i am tryign to read it runtime and how to load the .XSLT into stream rather than static.

How to write the read data to DS or DT rather then text file.

Thank you.

 

Jul 5, 2011 at 8:42 PM

You can use code very similar to what is show here:  http://x12parser.codeplex.com/wikipage?title=Creating%20a%20flat%20file%20from%20the%20X12%20xml%20using%20XSLT%20and%20XslCompiledTransform.

In step 5 of the discussion, instead of calling Assembly.GetExecutingAssembly().GetManifestResourceStream(), you just need to create a FileStream against the filepath of the xslt file.

Thank you for all your complements in http://x12parser.codeplex.com/workitem/753.  I will look into adding that feature.  I will be creating a new release soon, so be on the lookout for 2.1.7 release this month.

Jul 6, 2011 at 11:51 AM

Done.

 

Thank you dstrhbhar.