Not sure what you are trying to accomplish. It is true you cannot put a sub report in a text box. You can put a sub-report in it's own section. Then use section options to control the behavior a little bit.
First off it appears you are trying to assign a value to a field and that is not possible. You can create a variable (lots resources on how to do that) and assign that value to the variable, which in turn can be displayed in the report. So I believe this is what you want. In this case...
I think there is a way to utilize FileAuthor in a query. But I do not recall how it is done (I believe I read about it years ago). Did you look at the query it generates when you do the drag and drop method?
So further research seems to show that FileAuthor cannot be used in a query (Not sure...
Okay. Another round about way is to copy the text into Notepad or Notepad++. That should remove any link back to the original text. Then copy into a text box into Crystal. We have had the issue in the past where we copy from a PDF document and Crystal creates a OLE object.
Everything appears to be correct, have you verified that the unitprice is indeed getting the correct value in sub-report (i.e., display the value in GF 1B)? Second, make sure that unitprice is not any other formula where the value could be modified.
Andrzejek : You would need a second cast so that you can to the concatenation;
Cast( CAST(dbo.Product.Thickness As Int) as varchar) + 'x' + cast(CAST(dbo.Product.Width As Int) as varchar)
One way would be to use Charindex (some might know it as instring). Something like this (not tested)
left(CAST(dbo.Product.Thickness AS varchar), Charindex('.',CAST(dbo.Product.Thickness AS varchar))-1)+ ' x ' + left(CAST(dbo.Product.Width AS varchar), Charindex('.',CAST(dbo.Product.Width AS...
There could be so many reasons for the application to crash (including a corrupt install). Very difficult to determine the root cause. It appears that you are using the 2011 version of Crystal. From what I recall, that was a pretty stable version of Crystal Reports.
So a couple of things to consider. Any value you want to pass from a sub-report to the main report. The sub-report has to be in a section prior to where you want the value. Second the sub-report cannot be suppressed (if you want to 'hide' the sub-report, there is a way to do that). The value...
What we have to do is create a ODBC connection using the Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.slsb), we are currently using verson 16.00.14701.20038.
Your requirement does not make sense.
If description = 'ARM SHANK' then shakeweight
if description = 'ARM SHANK' then armweight
Of course you can always use a case statement on the description to return what you need.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.