rainforestnet / CrystalReportsNinja

A small Windows Console App that loads external Crystal Reports file, takes parameter inputs and export to various format or even print to printer
http://www.rainforestnet.com
96 stars 78 forks source link

White-Space on Parameter Values #42

Open jkeczan opened 5 years ago

jkeczan commented 5 years ago

We have hit an issue in the report runner where we have parameter values that require a leading space and an optional trailing space.

The current implementation does not support this functionality since it is calling trim on the ParameterValue in the ParameterCore.cs file.

We can easily remove the .trim() function for our purposes but a parameter flag of -T On|Off would be beneficial in this case.

mhertzfeld commented 5 years ago

The Trim function has been removed by mikecrf121 in a fork he made of my repo. https://github.com/mhertzfeld/CrystalReportsNinja/commits?author=mikecrf121

I have merged mikecrf121's change into my repo. You can test the change in the following branch of my repo. https://github.com/mhertzfeld/CrystalReportsNinja/tree/1.4.0.0

If you still would like a parameter added for this functionality you can create an issue under my repo and I will look into addressing it.

https://github.com/mhertzfeld/CrystalReportsNinja/issues