borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (how to hide field in report if there is no......)Next Topic (Coding in Crystal Report) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : setting fields position in crystal reports dinamically from VB
Poster Message
Gharakhanlou
Level: Scholar

Registered: 30-04-2005
Posts: 40

icon setting fields position in crystal reports dinamically from VB

Hi Dear
I want to set any fields position in report before sent it to printing by values which user enter them.

for example when user want to print a text he/she can set where of the page her/his name will print
thanks

[Edited by Gharakhanlou on 30-04-2005 at 12:32 PM GMT]

[Edited by Gharakhanlou on 04-05-2005 at 12:33 PM GMT]

30-04-2005 at 09:28 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: settint fields position in crystal reports dinamically from VB

Textobject, for example

dim tb as craxdrt.textobject

    set tb=rpt.sections(2).reportobjects("text1") ' page header section

    tb.left=somevalue
    cr.refreshex false ' false means we dont want to reload data from database


there rpt is xraxdrt.report and cr is crystal report viewer control.

____________________________
If you find the answer helpful, please mark this topic as solved.

01-05-2005 at 07:06 PM
View Profile Send Email to User Show All Posts | Quote Reply
Gharakhanlou
Level: Scholar

Registered: 30-04-2005
Posts: 40
icon Re: setting fields position in crystal reports dinamically from VB

hi Goran
thank u for reply
i fount a way else for doing it,i mean creating reports at run time .
i mean we create the whole of report by coding
but i dont know more about your code i think your idea some differ from my idea .i want you send me some more information about your code .
thank u more and more

04-05-2005 at 09:41 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: setting fields position in crystal reports dinamically from VB

I always work with external reports, therefore rpt object represent this external report. Every report has sections, and these sections can be accessed through their indeces/names. Every section has collection of report objects, and they can also be access through their indeces/names. So I dont see what is it that you didnt understand? Since you say you are building report in runtime, then you are aware of all these objects....

____________________________
If you find the answer helpful, please mark this topic as solved.

04-05-2005 at 09:17 PM
View Profile Send Email to User Show All Posts | Quote Reply
Gharakhanlou
Level: Scholar

Registered: 30-04-2005
Posts: 40
icon Re: setting fields position in crystal reports dinamically from VB

hi Dear
so how we can pass this setting to report ?by formula or other thing?
and can we use several formula?
thank u more and more

05-05-2005 at 05:24 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: setting fields position in crystal reports dinamically from VB

I dont understand you. You are working here with CR objects, therefore, everything you change on this objects will reflect crystal report when previewing it. The only thing you need to know is what section is the object in, what is the name (index) of the object to change it properties in runtime.

____________________________
If you find the answer helpful, please mark this topic as solved.

05-05-2005 at 02:20 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : setting fields position in crystal reports dinamically from VB
Previous Topic (how to hide field in report if there is no......)Next Topic (Coding in Crystal Report) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder