473,378 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to print directly from a UltraGrid (infragistic controls) in

I am having trouble printing in landscape, when i print directly from the grid.

This is how my code looks rightnow:
Private Sub cmdPrintFromGrid_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles cmdPrintFromGrid.Click
Dim prtDoc As New Printing.PrintDocument()
prtDoc.DefaultPageSettings.Landscape = True
Me.UltraGrid1.Print(Me.UltraGrid1.DisplayLayout, prtDoc)
End Sub
Private Sub UltraGrid1_InitializePrint(ByVal sender As Object, ByVal e As
Infragistics.Win.UltraWinGrid.CancelablePrintEvent Args) Handles
UltraGrid1.InitializePrint

e.DefaultLogicalPageLayoutInfo.FitWidthToPages = 1

End Sub


I get printed two pages all the time. In one page I have the contents of
the grid (what i want) and in the other page I get the two last colums, but
they where already in the first page. something strange.
Nov 21 '05 #1
1 9886
datex
1
i m using these properties of ultrawin grid but not saticefied with the result, the repeated columns in the grid are printed. did you got the solution over this for infragrid
e.PrintLayout.AutoFitColumns = True
'For Columns to be not get clipped
e.DefaultLogicalPageLayoutInfo.ClippingOverride = UltraWinGrid.ClippingOverride.No
e.DefaultLogicalPageLayoutInfo.ColumnClipMode = UltraWinGrid.ColumnClipMode.RepeatClippedColumns
I am having trouble printing in landscape, when i print directly from the grid.

This is how my code looks rightnow:


Private Sub cmdPrintFromGrid_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles cmdPrintFromGrid.Click


Dim prtDoc As New Printing.PrintDocument()
prtDoc.DefaultPageSettings.Landscape = True
Me.UltraGrid1.Print(Me.UltraGrid1.DisplayLayout, prtDoc)


End Sub


Private Sub UltraGrid1_InitializePrint(ByVal sender As Object, ByVal e As
Infragistics.Win.UltraWinGrid.CancelablePrintEvent Args) Handles
UltraGrid1.InitializePrint

e.DefaultLogicalPageLayoutInfo.FitWidthToPages = 1

End Sub




I get printed two pages all the time. In one page I have the contents of
the grid (what i want) and in the other page I get the two last colums, but
they where already in the first page. something strange.
Jun 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Eric B | last post by:
....That's what I did and I'm unable to display tooltips for my buttons (despite they're working fine in the MDI main form menu...). Ever experienced this kind of problem ? -- Eric Bergbauer ...
1
by: Nilz | last post by:
Hi all, I want to know is there any facility with UltraGrid with which we can attach a Windows form having a text box and 2 buttons, so that we can write in the textbox and on the click of ok button...
3
by: techie | last post by:
Hi, I am using an UltraGrid of Infragistics Net Advantage 2005 in my application. I need to add an image to all cells under a column.I need to have image and text in the same cell. Can any one...
0
by: tavita | last post by:
I'm studying about the UltraGrid control. Other this question: "How many layouts do the UltraGrid have?(Ex: is RowLayout one of its layouts? ) Advantage and Disadvantage of them". Can you tell me...
0
by: tavita | last post by:
I'm a beginner of .NET. I have some problems about the events of UltraGrid. I see that UltraGrid have many events but i don't know the order of them. Can you arrange for me. Please, give me a list of...
1
by: usernew | last post by:
Hi All, I'm very beginner in UltraGrid control. I am using UltraGrid control to manage a list and using the card view style. Where i'm facing issue is when the items in the list are more and when i...
1
by: thripurari | last post by:
Hi ! Dear all! I am getting a problem while binding the data source to the ultragrid . pls can any one could help me to bind the excell file to my ultra grid. My Question is: How to bind the...
1
by: sunitachothe | last post by:
how to assign images in cells of infragistic ultragrid control. I have set outlook group by property to true ... InitializeRow event is called twice once data is bind to ultragrid and when we click...
18
by: =?Utf-8?B?SGVyYg==?= | last post by:
I'm using a ReportViewer in ASP.NET. From the development environment it works fine. When published and I try to open the page with the ReportViewer I get the error: An internal error occurred...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.