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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing

Status
Not open for further replies.

miguelisboa

Technical User
Apr 29, 2006
13
PT
using vb6, visual installer 1.1 and crystal 8.5 i made a install package; i tested it in my machine and it does print, but, in any other, does not
the event log file states: Invalid directory
what am i doing wrong?
i use ms access database

thanks in avance
 
Sounds to me like the path to the printer you specified on the machine you built your app in does not exist on the machine/machines you installed it on. I deduce this from
event log file states: Invalid directory

Check to see what string path you are using for your print event, and make sure that directory/path exists on your target machines.

Tom

Born once die twice; born twice die once.
 
hi
thanks for answering, and so quickly!

in fact i'v no path at all in both places; i'm inclined to database location, odbc or similar problem
dont know what to do...
 
Hmmm...Possible to post your code? I might not be able to help much, but at least with something to go by we stand a chance.

Tom

Born once die twice; born twice die once.
 
not sure if it is this what you want:
If Button.Index = 3 Then
CrystalReport1.StoredProcParam(0) = cboDisciplina.Text
CrystalReport1.StoredProcParam(1) = Mid(cboEpoca.Text, 1, 4)
CrystalReport1.StoredProcParam(2) = orsTurmas!id
CrystalReport1.StoredProcParam(3) = lstPeriodo.Text
CrystalReport1.PrintReport
End If
 
and the full log:
09/14/06, 21:51:37, 4, 0, :Invalid directory.
 
Hi! Any idea what this string returns?
Code:
CrystalReport1.StoredProcParam(1) = Mid(cboEpoca.Text, 1, 4)

I know it will give you a four character string starting at position 1 of cboEpoca.Text (which I assume to be a combo box) so I thought I would ask. What do the four chars signify?

Also, is this the line you think it bombs on?
Code:
CrystalReport1.PrintReport

Tom

Born once die twice; born twice die once.
 
i'm so sorry
i cheked better and indeed there's a path
the moment i reproduced that path in target computer, it does print

anyway thanks a lot!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top