Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

document server name

Status
Not open for further replies.

GShen

MIS
Sep 26, 2002
561
US
I need to print a 6 differentreports on a ricoh copier. Had a network card put in. The problem is that there is an 8 char field on the copier (document server name). I want the name to be different for each report so the operator knows which report is which when he views them in the document server queue. I can either create a separate report for each one which will work but there are sub reports, etc. which all need to be duplicated OR if can somehow in VB change the document server name. I looked prtdevnames but not sure how that is going to help me. This is for a richo afficio 700/550 seriew copier.
I don't want to waste more time on this if it is not doable.
I see something out there for dmdriverdata (from prtdevmode SIZE) which looks like what I need. How do you find out what the layout or fields would be for this ?
Thanks

Remember when... everything worked and there was a reason for it?
 
I'm not sure that I understand your question. Are you trying to generate different names in the print queue when you print a single report using multiple conditions? If that's what you're trying to do, then you could do something like this when you open the report:
Code:
Private Sub Report_Open(Cancel As Integer)
    Select Case Me.OpenArgs
        Case 1: Me.Caption = "Report Name 1"
        Case 2: Me.Caption = "Report Name 2"
        Case 3: Me.Caption = "Report Name 3"
        Case 4: Me.Caption = "Report Name 4"
        Case 5: Me.Caption = "Report Name 5"
        Case 6: Me.Caption = "Report Name 6"
    End Select
End Sub
 
LisaWay,
I wish it were that easy. I tried but that is not what I need. There is something called a document server on a copier machine. There is a job name in it, just like a printer queue. However, it is attached to the actual device driver. You can't access it with normal vb.. not that I know of. The code you gave me did indeed change the name in the printer queue, however, the name in the document queue did not change. What I finally got to work was to create 6 dummy reports. I went into the properties for each device driver and put in the names I wanted. Then when I print the report, I switch device drivers with the dummy report (prtdevmode). All is well. If I knew how to access that string dmdriverdata, then I could do as you said and put it on the On Open event.
Thanks for your help.

Remember when... everything worked and there was a reason for it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top