Default Avatar

gordk

gordk

About

Username
gordk
Location
St.Catherines On. Canada.
Joined
Visits
0
Last Active
Roles
FR Team

Comments

  • Try adding as x := [x] +1; in some cases the var x must be initialized to a value first. ie: empty string or number, depending on what it will be used for.
  • I agree with quizal best place is conditional highlight property of memo, since you can also modify font color to suit bgcolor. just to explain what is happening with your script begin S:= Memo3.Memo; if S = '' then S:= '0'; s is probably alw…
  • Glad to here you got it working What may be happening with stretched on, a cflf may have been inserted and that is what was showing. check memo's props and make sure wordwrap and stretched are off also.
  • the best example of adding functions to the library is the additional functions library of the powerpack. BTW. though originally for 2.47 they still work fine with fr2.53.
  • Check the contents of the memo your using for labels, make sure you havent added text to it after a variable.
  • hi Don i mislead you a bit sorry the sum function should be fine with extended syntax, i was thinking of prob;ems with avg and count.
  • Don 2 requirements with sum function first [Sum([var or dfldname],bandname of mdband, 1)] use of extended syntax. 2nd must be used in correct footer, ie in a group with 2 header footers it will work fine in the inner footer, which is summing the …
  • No you can't create your own variable to use for display purposes and pass the results of the calc to it.
  • add the variables to the richtext at the time you create it make sure when you load the richtext to the report that the report contains the variable names in the dictionary or are preset or you have an ongetvalue eventhandler for the report compon…
  • Pete if your talking about designtime under ide make sure datamodule has been viewed once before trying to do anything else.
  • add the datamodule to the uses clause of the form.
  • Hi Roberto what you want is average per invoice. so you have to count the number of times the innergroupheader appears for each customer. in opb of first groupheader band4 mycount := 0; in obp of 2 groupheader inc(mycount); in memo in outer f…
  • sorry about that First Avg requires a band name parameter and second it must be in correct footer so it would look like [AVG(varname]*[varname,nameofmdband)] and be placed in the innergroup footer not the outerfooter since we are working with var…
  • Try frdictionary.variables := '';
  • Possibly because there is no avg function in the function list. However please post questions about Fr3 in the Fr3 forum.
  • Hi not a bcb person but here is a few things that can hapen in delphi report.frf file not loaded, either no code to do it or bad ('pathname filename') suplied to loadfromfile. usually spot this by being able to preview in designer under ide if n…
  • I can only say it again make sure all datamodules are created before auto created forms. and when in ide you must view each datamodule once before any other. and don't forget only 1 designer component per project if adding design capabilities.
  • afterloading report and before prepareing or showing use findobject method frreport1.finobject('objname'); or in frreport component's on before print eventhandler if view.name = 'nameofobject then begin with classname(view)do retrieve props he…
  • Look at project source file make sure datamodule is first in list. to pe created. if running under ide open datamodule form once then go back to your other form. see what happens
  • If you looked at demos you would see how to do this also in documentation. ie memo1 contains var or datafield [qty] memo2 [price] memo3 qty]*[price
  • Hi theodore here is a method add a variable to the datadictionary ie Mgc set group header condition to [Mgc] hereis a sample of code for the onclick button of the dialogdorm begin if cb1.checked then Mgc:='[Copy(Company, 1, 1)]' else Mgc :…
  • Post a snip of the code where you are trying to change it. regards
  • Put the component in a masterdataband height is not critical just larger then default height of component. set the bands datasource property to the frdbdataset which is connected to your query. set its stretched and breaked properties to true. adj…
  • see fr#\demos\reports demo project look at keep masterdetail together report. regards
  • Just a quick look You will never get a masterheader to display unless you have a masterdata band set to at least virtual 1 record. that is what i would place the rtfmemo in. regards
  • you may be entering an impossible string try '[whatyouwant]' ot ''''+'whatyouwant'+''''the parser just like delphi strips leading trailing apostrophes so it is just like building a filter string. also remember the underlying query/table must be s…
  • antonio go to the fast-report.public.binaries news group download the message about miscelaneous tips the zip file shoud contain a file titled masterdetaildatabandsanddata.txt it should help you understand the relationship between data and bands. …
  • try using the Frrxrtf object it requires rxlib but it handles the differences in the MS richedit dll versions better, but also be aware that rtf's created under new versions of msword may not be read correctly by old versions that would be on w98 sy…
  • hi make sure rxrtfmemo has stretched set to true and the band must have stretched and breaked set to true. regards
  • Hi Assuming you got the condition syntax correct if you want header footer combinations to show like gh1 data gf1 gh2 data gf2 and so on then in each header bands obp add code visible := copy and paste condition. in groufooter obp add c…