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 (VB data Report)Next Topic (Print reports with datareport) New Topic New Poll Post Reply
AndreaVB Forum : Printing : Data Report???
Poster Message
luckyboy
Level: VB Lord

Registered: 05-05-2005
Posts: 160

icon Data Report???

My Data reports have landscape and Portrait papers. and i don want my user click change property printer like 'A'. it annoy to user. can i use code to change? or when they click to report if my report is landscape then, it will show property of printer that effect to the report print. so they can change property of printer to landscape. if next time my user want to print report in landscape again no need to change. it will have effect to PC.

A: Start Menu->Setting ->Printers and Faxes-> right click to printer->printing preferences...


[Edited by luckyboy on 11-10-2005 at 03:48 PM GMT]

____________________________
Please help out.

11-10-2005 at 08:45 AM
View Profile Send Email to User Show All Posts | Quote Reply
TJ_01
Level: VB Lord


Registered: 24-08-2005
Posts: 320
icon Re: Data Report???

Would this code helps..

If optLndScape.Value = True then
  DataReport1.Orientation = rptOrientLandscape
elseif optLndPortrait.Value = True then
  DataReport1.Orientation = rptOrientPortrait

This is air coded and my apology if wrong.

____________________________
Im JAMES  

28-10-2005 at 02:33 AM
View Profile Send Email to User Show All Posts | Quote Reply
is269
Level: Scholar

Registered: 24-02-2004
Posts: 35
icon Re: Data Report???

hi TJ_01

Even i was looking the answer for the same question...but it gives an error...

Complie Error:  method or data member not found.

pls help






quote:
TJ_01 wrote:
Would this code helps..

If optLndScape.Value = True then
  DataReport1.Orientation = rptOrientLandscape
elseif optLndPortrait.Value = True then
  DataReport1.Orientation = rptOrientPortrait

This is air coded and my apology if wrong.

28-10-2005 at 05:04 AM
View Profile Send Email to User Show All Posts | Quote Reply
TJ_01
Level: VB Lord


Registered: 24-08-2005
Posts: 320
icon Re: Data Report???

quote:
Even i was looking the answer for the same question...but it gives an error...
Complie Error:  method or data member not found.


Actually my code doesnt relate to your error. What i gave is a sample code for printing. I assumed your using DataEnvironment. Check if you assign the Command1 to your report.



[Edited by TJ_01 on 02-11-2005 at 01:27 AM GMT]

____________________________
Im JAMES  
02-11-2005 at 01:26 AM
View Profile Send Email to User Show All Posts | Quote Reply
practrainee
Level: Sage

Registered: 26-01-2005
Posts: 68
icon Re: Data Report???


                    

i hav same poblem tht b4 its ok..n worked

but for de new project (diff. computer), its started givin me

"method or data member not found"

even i've installed n reinstalled vb sp5-restart-put

dtareport1.orientation=2 or landscape...

it just hightlited the .orientation  

                  

24-01-2006 at 05:04 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Data Report???

This is a confirmed bug by MS, I believe it is fixed it in newer service pacls. Always have the l;atest servicepack available installed

http://msdn.microsoft.com/vstudio/downloads/updates/

I believe the trick is to delete the values for the DataMember and DataSource properties of the datareport and reassign them again.

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

24-01-2006 at 11:50 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Printing : Data Report???
Previous Topic (VB data Report)Next Topic (Print reports with datareport) 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