PDA

Click to See Complete Forum and Search --> : print button disable


noister
Nov 5th, 2008, 02:28 AM
CR8, VB6

please help! why print button still keeps disabled. what missing with my codes. i already put TRUE value in the properties value of 'WindowShowPrintBtn' and also added in my code to make sure. but, still it's disabled. :confused:

here's some part of my code.'show report
cr.ReportFileName = App.Path & "\report\" & strReportFile
cr.Connect = sql_host & ";UID=" & sql_user & ";PWD=" & sql_pass & ";DSQ=" & sql_db & ";"
cr.RetrieveDataFiles
cr.SQLQuery = strQry
cr.WindowState = crptMaximized
cr.WindowShowPrintBtn = True
cr.Action = 1

errorMe: gotoErrHandler

noister
Nov 11th, 2008, 08:14 AM
idea here please...

jggtz
Nov 11th, 2008, 11:44 AM
One thing to check could be that the pc has not an installed printer

noister
Nov 12th, 2008, 09:45 PM
so it's disabled if there is no installed printer?

jggtz
Nov 12th, 2008, 10:11 PM
Could be, I'm not in a proper environment to check

noister
Nov 13th, 2008, 12:42 AM
Could be, I'm not in a proper environment to checkjust asked the client if she has a printer installed in her pc. and she has... also, the export feature is not working.

is it possible some dll files missing? but i tried with dependencywalker and finds no missing.

any idea? :confused: