Go Back   Steve's Digicams Forums > Digital Cameras (Point and Shoot) > Nikon

Thread Tools Search this Thread
Old Jul 19, 2008, 6:39 AM   #1
Junior Member
Join Date: Jul 2008
Posts: 1

Hi all,

I need to controll D60 remotely via USB. I wrote software using WIA commands. It works perfectly, but there is one problem. I can not get image in NEF format. If I trigger camera from software, it transfers image in JPG format. If I trigger it by pressig camera button, it transfers image in NEF format.
Command code is below:

Private Sub Command2_Click()
Dim dev As Device
Dim itm As Item
Dim img As ImageFile
Dim v As Vector

Set dev = DeviceManager1.DeviceInfos(1).Connect
Set itm = dev.ExecuteCommand(wiaCommandTakePicture)
Set img = CommonDialog1.ShowTransfer(itm)
Set v = img.FileData
Set Picture1.Picture = v.Picture
img.SaveFile "C:\" & itm.Properties("Item Name").Value

End Sub
Where is the problem?

Thank you !

Evaldas256 is offline   Reply With Quote
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT -5. The time now is 2:26 AM.