473,804 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to print MsFlexgrid items using printdialog box,printdocuem nt and all

Hi all,
This is very uregent requirement.Req uirement is, i am using MSFlexgrid in
vb.net .At the run time this grid contains some data items.Any body knows
how to print these rows using printdilalogbox ,printDocumnet and all .
Please tell me the sample example of this requirement

Thanks in advance
TulasiKumar
Nov 21 '05 #1
1 2570
"Tulasi" <tu*********@na nnacomputers.co m> schrieb:
This is very uregent requirement.Req uirement is, i am using MSFlexgrid in
vb.net .At the run time this grid contains some data items.Any body knows
how to print these rows using printdilalogbox ,printDocumnet and all .


You may want to iterate over the rows and columns and write them to a
'PrintDocument' object.

A *VB6* sample for printing a MSFlexGrid control can be found here:

<URL:http://www.activevb.de/tipps/vb6tipps/tipp0249.html>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

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

Similar topics

5
13385
by: MouseHart | last post by:
I've written a simple program in VB 6.0 to list all my MP3 files. To show them on the screen I used an MSFlexGrid named TextGrid (which is not associated with any table or text file) in the following code run by a button (the files are all in the format "Artist - Name Of Song" in their directories, which is why the code looks for a dash): Private Sub Command1_Click() Dim dashplace%, length% For I% = 0 To File1.ListCount FLIName =...
1
8579
by: ekey | last post by:
Hi follow function to print many copies but it only print one copy, my document is only one page; but i want to print many copies .such as three copies. how to do? Where do it error? THS private void mn_file_print_Click(object sender, System.EventArgs e) { PrintDialog dlg = new PrintDialog();
0
932
by: Babz | last post by:
Hi, I want to get the print data from the PrintDialog box and pass it to the crystal reports. But using the following code I am not able to get data. Private dgPrintDialog As New PrintDialog() dgPrintDialog.Document = Nothing dgPrintDialog.AllowSelection = False dgPrintDialog.AllowSomePages = True dgPrintDialog.AllowPrintToFile = False
0
890
by: Babz | last post by:
Hi, I want to get the print data from the PrintDialog box and pass it to the crystal reports. But using the following code I am not able to get data. Private dgPrintDialog As New PrintDialog() dgPrintDialog.Document = Nothing dgPrintDialog.AllowSelection = False dgPrintDialog.AllowSomePages = True dgPrintDialog.AllowPrintToFile = False
2
1050
by: Rich | last post by:
Hi, I am working on a large Text Editor program. I have features like save, but I need help on how to print. I need to print the string "textbox1.text" using a printdialog. I would also like a way to print without the printdialog. Any help would be greatly appreciated. Thanks in advance, Rich
1
3590
by: Michael R | last post by:
I am using a PrintPreviewDialog to show a document. Via the BeginPrint event, I open a PrintDialog to let the user choose what pages (and other settings) to print. However, I can't find a way to allow the user to cancel the print command if the 'Cancel' button is pressed from the PrintDialog. I tried throwing an exception, but it is only caught when I run in debug mode (bug in C#?). i.e. If I 'Start without debugging', then the...
0
1136
by: thiago777 | last post by:
Hello all, I need to show the PrintDialog screen so that client can choose/select a specif printer to use after viewing the print preview. In other words, after the printPreview is completely loaded (fired printDoc event once), I need to take control over the action performed when the user clicks in the "print" button/icon so that I can show the PrintDialog instead of sending the document directly to the printer. Im sure this should be...
0
2385
by: thirunavukarasukm | last post by:
Hai.... To print Html page using PrintDialog and Print Document i am created one windows appication.. the windows application have many pages in my booking page i have two buttons one btnprint,btnclose
2
7602
by: Artie | last post by:
Hi, I've searched the web but can't find a solution to an apparently really simple problem. My app contains an HTML string and I need to be able to invoke the Print Dialog to print the HTML correctly formatted (i.e. not as raw HTML) to a printer that the User chooses. So, I need something like:
0
9711
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9593
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9169
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7633
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5668
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.