Search found 11 matches

by cbalza
Mon Aug 03, 2015 5:43 pm
Forum: PowerShell GUIs
Topic: DataGridView Saving and Printing
Replies: 31
Views: 16218

Re: DataGridView Saving and Printing

Thanks for the replys. I will take another stab at it hopefuly this week.
by cbalza
Fri Jul 31, 2015 5:09 pm
Forum: PowerShell GUIs
Topic: DataGridView Saving and Printing
Replies: 31
Views: 16218

Re: DataGridView Saving and Printing

The problem I am running into is its printing an infinity amount of pages and duplicating the data onto each new page. I believe the problem resides in the DrawGridBody function and in the for loop. $btnPrint_Click = { $printDialog = New-Object System.Windows.Forms.PrintDialog $printDialog.UseEXDial...
by cbalza
Thu Jul 30, 2015 4:10 pm
Forum: PowerShell GUIs
Topic: DataGridView Saving and Printing
Replies: 31
Views: 16218

Re: DataGridView Saving and Printing

Well I figured out how to print the results as test instead of a bmp. I still run into the problems of printing multiple pages though. My current problem I am running into is once I hit x i print an infinity pages until canceled. What is the best aproach for printing multiple pages?
by cbalza
Fri Jul 17, 2015 1:06 pm
Forum: PowerShell GUIs
Topic: DataGridView Saving and Printing
Replies: 31
Views: 16218

Re: DataGridView Saving and Printing

I have the ability to save the report to excel and then print it that way, but I wanted the convenience of being able to print it directly without have to save the excel file and opening it up just to print. Also now that I have gotten this far I cant give up now :P
by cbalza
Fri Jul 17, 2015 11:41 am
Forum: PowerShell GUIs
Topic: DataGridView Saving and Printing
Replies: 31
Views: 16218

Re: DataGridView Saving and Printing

Alright got it working, but now I have the issue where it only prints what is seen on the screen. I am having trouble making it loop through all the rows so they all print when the datagridview exceeds the length of its height. $btnPrint_Click = { $printDialog = New-Object System.Windows.Forms.Print...
by cbalza
Thu Jul 16, 2015 1:03 pm
Forum: PowerShell GUIs
Topic: DataGridView Saving and Printing
Replies: 31
Views: 16218

Re: DataGridView Saving and Printing

I am still having trouble with this. How would I be able to write a function in C# to print the document then call it in powershell?
by cbalza
Tue Jul 14, 2015 5:23 pm
Forum: PowerShell GUIs
Topic: DataGridView Saving and Printing
Replies: 31
Views: 16218

Re: DataGridView Saving and Printing

[quote="jvierra"]Ok - frequently this site just eats a post. Very annoying,

Here is how we need to print in forms:

quote]

Ah ok, let me give this a look over. Thanks
by cbalza
Tue Jul 14, 2015 5:21 pm
Forum: PowerShell GUIs
Topic: DataGridView Saving and Printing
Replies: 31
Views: 16218

Re: DataGridView Saving and Printing

I was able to output the image of the grid to a file, but is there a way to print the image without it being saved?
by cbalza
Tue Jul 14, 2015 3:36 pm
Forum: PowerShell GUIs
Topic: DataGridView Saving and Printing
Replies: 31
Views: 16218

Re: DataGridView Saving and Printing

That isnt quite what I am looking for. I want to be able to print the data from the grid without having to save to file then output the file.
by cbalza
Mon Jul 13, 2015 4:48 pm
Forum: PowerShell GUIs
Topic: DataGridView Saving and Printing
Replies: 31
Views: 16218

Re: DataGridView Saving and Printing

Thanks, I was able to get the save portion to work how I want it but the printing has its issues. How can I go aobut formating the printing so it looks like it is in a table? $btnSave_Click={ $saveFile = New-Object System.Windows.Forms.SaveFileDialog $saveFile.Filter = "Comma Delimited (*.csv) ...