Results 1 to 5 of 5
  1. #1
    pipelian is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    7

    how can I print a new document for each datarow in my datagridview?


    Hi
    how can I print a new document for each datarow in my datagridview?. I have the PrintDocument procedures separately.
    Thanks in advance

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Maybe looping code that cycles through the datagridview and runs report with the values as criteria.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    pipelian is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    7
    Thanks fro the replay...

    how can i accomplish this? I'm able to loop trough the datagridview, where i'm stock is in printing a new document for each datarow value

    Thanks

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I have never used datagridview, just list and combo boxes.

    If you know how to loop through the control then do you know how to reference the value of the active row? Apparently datagridview has Row and Cell index referencing. http://social.msdn.microsoft.com/For...6-f47b4fa2de25

    Are values in the grid report names? Use that value in the DoCmd.OpenReport method.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    pipelian is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    7
    I really appreciate your help and figured out.... thank you so much

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 10-26-2011, 02:59 PM
  2. Replies: 0
    Last Post: 02-22-2011, 05:04 AM
  3. Replies: 0
    Last Post: 03-26-2010, 09:11 AM
  4. Print Preview different from Print Hardcopy
    By peterc in forum Reports
    Replies: 4
    Last Post: 10-27-2009, 05:35 AM
  5. Error when trying to print or print preview
    By TriAdX in forum Reports
    Replies: 8
    Last Post: 08-25-2009, 08:20 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums