linux mania

অগাষ্ট 10, 2006

dynamically change crystal reports text

যার অধীনে আছে: vs .net — pipasharto @ 4:50 am

i searched a lot in the internet and finally found the solution, crystal report are slightly modified in the new .net 2005. the key idea is all the crystal report’s reportObjects are accessible. like if you have a text object in your report, its content can be changed on the fly. the code is

TextObject txt;

txt = (TextObject)rpt.ReportDefinition.ReportObjects["Text6"];//Text6 is the name of the textobject u wanna change

txt.Text=”attendance is “+9+”\n\njjj”; //:( the newlines not working yet , i dont know why

shahrear

2 টি মন্তব্য »

  1. Easy pleasy… use a formula instead of text object, see http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2015089&sliceId=&dialogID=360384&stateId=1%200%20356275

    Comment লিখেছেন anonymous — অক্টোবর 12, 2006 @ 9:20 am

  2. hei anon buddy,
    many many thanks.

    Comment লিখেছেন pipasharto — অক্টোবর 12, 2006 @ 12:10 pm


RSS এই লেখাটির জন্য করা মন্তব্যের স্রোত। TrackBack URI

মন্তব্য দিন

Blog at WordPress.com.