Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to move positon (X,Y) for Text Object in Crystal Report Programmatically at Runtime .
Posted
Updated 3-Dec-15 13:11pm
v2
Comments
Suvendu Shekhar Giri 3-Dec-15 22:37pm    
Use formula in Position Formula. Anything you have tried so far?
baketharlay 3-Dec-15 23:53pm    
please explain with example
aarif moh shaikh 4-Dec-15 0:29am    
you can use only formula in crystal report . but if you want to do this from your .cs page, i think you can't .

1 solution

Try this:
C#
CrystalReport1 c = new CrystalReport1();
  ReportObject reportObject = c.ReportDefinition.ReportObjects["Text1"];
  TextObject textObject = (TextObject)reportObject;
  textObject.Left = 15; // this is the part you need
  textObject.Top = 15; // this is the part you need


You ofcourse don't have to create new object, use the one you already have :)
Good luck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900