Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I have managed to load a disconnected dataset, which is then used to populate my datagrid, but now I must find a way to print it all. When I say all, it entails multiple user text box inputs, and the datagris/datatable that is derived from those inputs. Is there anyway to write a blank report in crystal, and pass values to formulas within the report from visual basic? Or am I better off writing everything to a text file, then sending that to a printer? I would really like to include a graphic on the printed page, but I am open to suggestions of an kind. Thanks....
I'd rather be riding than working
Posted
I tried what Robby recomended, but the code gets pretty ugly, and for some reason, some of the info that shows in the print preview, doesn't print. It is info that is within a loop. Any suggestions or other alternatives?
I'd rather be riding than working
Posted
I am looping through a data table to create rows and columns, and they show in the prview window, but they aren't printing. I am not quite sure what is going on yet, but I will post again when I figure it out...
I'd rather be riding than working
  • Moderators
Posted

easy solution... Reset the itm when the preview is finished (as well as the actual print page)

 

Place the following in your code.

   Private Sub PrintDocument1_EndPrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs) Handles PrintDocument1.EndPrint
       itm = 0
   End Sub

Visit...Bassic Software
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...