<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Method:Classic General Q&amp;amp;A</title><link>http://forums.method.me/cs/forums/13.aspx</link><description>Ask technical support questions, how do I? Questions... Or anything else you want to know from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Report Designer - calculated fields</title><link>http://forums.method.me/cs/forums/thread/35886.aspx</link><pubDate>Wed, 10 Oct 2018 20:03:07 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:35886</guid><dc:creator>Method_Inderdeep</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/35886.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=35886</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;span id="mce_4_start" style="overflow:hidden;"&gt;&lt;/span&gt;Hi StuartKatz,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Do you mind letting me know the end result&lt;span id="mce_2_start" style="overflow:hidden;"&gt; that you are trying to achieve&lt;/span&gt;&amp;nbsp;&lt;span id="mce_3_start" style="overflow:hidden;"&gt;and what are the fields you are working with and on which report? It will help us in narrowing the issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;-Inder&lt;span id="mce_4_end" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Report Designer - calculated fields</title><link>http://forums.method.me/cs/forums/thread/35885.aspx</link><pubDate>Wed, 10 Oct 2018 20:03:04 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:35885</guid><dc:creator>Method_Inderdeep</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/35885.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=35885</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Hi StuartKatz,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Do you mind letting me know the end result&lt;span id="mce_2_start" style="overflow:hidden;"&gt; that you are trying to achieve&lt;/span&gt;&amp;nbsp;&lt;span id="mce_3_start" style="overflow:hidden;"&gt;and what are the fields you are working with and on which report? It will help us in narrowing the issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;-Inder&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Report Designer - calculated fields</title><link>http://forums.method.me/cs/forums/thread/35884.aspx</link><pubDate>Wed, 10 Oct 2018 17:51:31 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:35884</guid><dc:creator>StuartKatz</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/35884.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=35884</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;I have been trying to get scripts to work in the report designer and I keep getting weird results.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I followed your example above and created the following script where labe&lt;span id="mce_2_start" style="overflow:hidden;"&gt;&lt;/span&gt;l28&amp;nbsp;is &lt;span id="mce_3_start" style="overflow:hidden;"&gt;a&amp;nbsp;&lt;/span&gt;new label I added to the group &lt;span id="mce_4_start" style="overflow:hidden;"&gt;foot&lt;span id="mce_15_start" style="overflow:hidden;"&gt;&lt;span id="mce_16_start" style="overflow:hidden;"&gt;&lt;span id="mce_17_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;e&lt;span id="mce_13_start" style="overflow:hidden;"&gt;&lt;span id="mce_14_start" style="overflow:hidden;"&gt;r&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span id="mce_18_start" style="overflow:hidden;"&gt;&lt;/span&gt;2&lt;/span&gt;&amp;nbsp;and label33 is a label that is a summary &lt;span id="mce_5_start" style="overflow:hidden;"&gt;in group footer 2&amp;nbsp;&lt;/span&gt;and is bound&amp;nbsp;&lt;span id="mce_19_start" style="overflow:hidden;"&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;InvQty in the table I am using for this report.&lt;span id="mce_13_end" style="overflow:hidden;"&gt;&lt;span id="mce_14_end" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_8_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_8_start" style="overflow:hidden;"&gt;&lt;/span&gt;Private Sub OnBeforePrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs)&lt;/p&gt;
&lt;p&gt;ctype(sender,xrLabel).Text = Microsoft.VisualBasic.Format(label33.Text,&amp;quot;##0.00&amp;quot;)&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_7_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;span id="mce_11_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_11_start" style="overflow:hidden;"&gt;&lt;/span&gt;What shows up on the report is&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span id="mce_10_start" style="overflow:hidden;"&gt;##0.00&lt;span id="mce_12_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span id="mce_20_start" style="overflow:hidden;"&gt;Any idea waht I am&lt;span id="mce_22_start" style="overflow:hidden;"&gt;&amp;nbsp;&lt;/span&gt;d&lt;span id="mce_21_start" style="overflow:hidden;"&gt;&lt;span id="mce_25_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id="mce_24_start" style="overflow:hidden;"&gt;&lt;/span&gt;o&lt;span id="mce_24_end" style="overflow:hidden;"&gt;&lt;/span&gt;ing wrong?&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span id="mce_23_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: Report Designer - calculated fields</title><link>http://forums.method.me/cs/forums/thread/10998.aspx</link><pubDate>Wed, 29 Feb 2012 01:43:45 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:10998</guid><dc:creator>s.nissel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/10998.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=10998</wfw:commentRss><description>&lt;p&gt;I need to calculate to labels together to give me a total in a new label.&amp;nbsp; I followed the above coding and it took one label and divided by the 2nd label.&amp;nbsp; I need it to add them together.&amp;nbsp; What coding would I use for that.&amp;nbsp; I assume i need to subsitute the / with a + but when I did that it just showed me &lt;i&gt;$#,##0.00###&amp;quot;.&lt;/i&gt;&lt;/p&gt;</description></item><item><title>Re: Report Designer - calculated fields</title><link>http://forums.method.me/cs/forums/thread/8306.aspx</link><pubDate>Thu, 22 Sep 2011 19:14:05 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:8306</guid><dc:creator>Method_Michael</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/8306.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=8306</wfw:commentRss><description>&lt;p&gt;JKM@SA,&lt;/p&gt;
&lt;p&gt;The line of code I gave you has to be all on the same line and not on 2 seperate lines. If you are still having issues, I would suggest looking at some of the field on the Estimate templates(They have a simlair setup) or booking some consulting time.&lt;/p&gt;
&lt;p&gt;-Michael&lt;/p&gt;</description></item><item><title>Re: Report Designer - calculated fields</title><link>http://forums.method.me/cs/forums/thread/8305.aspx</link><pubDate>Thu, 22 Sep 2011 17:50:20 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:8305</guid><dc:creator>JKM@SA</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/8305.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=8305</wfw:commentRss><description>&lt;p&gt;I am getting an error message. &amp;nbsp;Here is what I entered:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Private Sub OnBeforePrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs)&lt;/p&gt;
&lt;p&gt;ctype(sender,xrLabel).Text=Microsoft.VisualBasic.Format&lt;/p&gt;
&lt;p&gt;(xrLabel13.Text/label2.Text,&amp;quot;$#,##0.00###&amp;quot;)&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am getting the following error message:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Times New Roman&amp;#39;;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;i&gt;There are the following errors in script(s):&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;label3.OnBeforePrint,line 2: error BC30455: Argument not specified for parameter &amp;#39;Expression&amp;#39; of Public Function Format(Expression As Object,[Style As String = &amp;quot;]) As String&amp;#39;.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;label3.OnBeforePrint, line 3: error BC30035: Syntax error.&lt;/i&gt;&lt;/p&gt;</description></item><item><title>Re: Report Designer - calculated fields</title><link>http://forums.method.me/cs/forums/thread/8304.aspx</link><pubDate>Thu, 22 Sep 2011 16:51:01 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:8304</guid><dc:creator>Method_Michael</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/8304.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=8304</wfw:commentRss><description>&lt;p&gt;JKM@SA,&lt;br /&gt;&lt;br /&gt;
Take note of the actual names of the labels you are using to
display the fields you want to use in your calculation. (Click on the labels
and in the property grid look for (name).)
&lt;/p&gt;
&lt;p&gt;Create a new label and in the property grid go to&amp;nbsp;&lt;strong&gt;Scripts &amp;gt; Before
Prin&lt;/strong&gt;t and click&amp;nbsp;&lt;strong&gt;...&lt;/strong&gt; , this will being up a windows where you can
enter a script
&lt;/p&gt;
&lt;p&gt;Enter the following between the 2 lines of existing code:
&lt;/p&gt;
&lt;p&gt;&lt;i&gt;ctype(sender,xrLabel).Text =
Microsoft.VisualBasic.Format(&lt;strong&gt;label5&lt;/strong&gt;.Text /&amp;nbsp;&lt;strong&gt;label6&lt;/strong&gt;.Text,&amp;quot;$#,##0.00###&amp;quot;)&lt;/i&gt;
&lt;/p&gt;
&lt;p&gt;You will need to replace label5 and label6 with the names of
the labels for the fields you are using.&lt;/p&gt;
&lt;p&gt;For those you want to know what the script is doing:
&lt;/p&gt;
&lt;p&gt;ctype(sender,xrLabel): Refers to the label calling the script&lt;/p&gt;
&lt;p&gt;&lt;i&gt;Microsoft.VisualBasic.Format(&lt;strong&gt;value&lt;/strong&gt;,&amp;quot;$#,##0.00###&amp;quot;):
Applies a currency format to value.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;/i&gt;
-Michael&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Report Designer - calculated fields</title><link>http://forums.method.me/cs/forums/thread/8302.aspx</link><pubDate>Thu, 22 Sep 2011 16:19:08 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:8302</guid><dc:creator>JKM@SA</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/8302.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=8302</wfw:commentRss><description>&lt;p&gt;Total Profit is in the table in a calculated format. &amp;nbsp;Total Actual Man Hours is just a sum on the report.&lt;/p&gt;</description></item><item><title>Re: Report Designer - calculated fields</title><link>http://forums.method.me/cs/forums/thread/8301.aspx</link><pubDate>Thu, 22 Sep 2011 16:07:14 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:8301</guid><dc:creator>Method_Michael</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/8301.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=8301</wfw:commentRss><description>&lt;p&gt;JKM@SA,&lt;/p&gt;
&lt;p&gt;Where is Total Profit and Total Actual Man Hours calculated? Are they stored in the table in the calculated format?&lt;/p&gt;
&lt;p&gt;-Michael&lt;/p&gt;</description></item><item><title>Report Designer - calculated fields</title><link>http://forums.method.me/cs/forums/thread/8300.aspx</link><pubDate>Thu, 22 Sep 2011 15:39:19 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:8300</guid><dc:creator>JKM@SA</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/8300.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=8300</wfw:commentRss><description>&lt;p&gt;I have a report with Total Profit (calculated) and Total Actual Man Hours (calculated). &amp;nbsp;How to I set up a calculation for:&lt;/p&gt;
&lt;p&gt;Total Profit/Total Actual Man Hours&lt;/p&gt;</description></item></channel></rss>