Commands sent with microphone

Hi!
I am using LabView 4.1 to control the motion of 2 traverse systems via
stepper motors.
The labview interface features a table of predefined points.
Buttons are used to select and send the point which moves the stepper
motors to a certain location.
What I would like to do is to send the command by "talking" to the
computer through a wireless microphone instead of pressing any key since
I am operating my experiment from a certain distant away.
For instance, by saying "1" the computer should be able to understand
and interpret that the operator has selected the point number 1 in the
table and send the command to the port to action the stepper motors.
Any suggestion?
Fabrice
Sent via Deja.com http://www.deja.com/
Before y
ou buy.

[email protected] wrote in message <8hgebg$2u5$[email protected]>...
>snip
>What I would like to do is to send the command by "talking" to the
>computer through a wireless microphone instead of pressing any key since
>I am operating my experiment from a certain distant away.
>For instance, by saying "1" the computer should be able to understand
>and interpret that the operator has selected the point number 1 in the
>table and send the command to the port to action the stepper motors.
>Any suggestion?
You could use the Microsoft Agent 2.0 as an Active X object. Check out the
MSDN website for more details:
http://msdn.microsoft.com/workshop/c-frame.htm#/workshop/imedia/agent/defaul
t.asp
Note that Agent is shipped with win2000, but is fully compatible with
win9
5/98/nt4.
Hope that helps,
Paul Conroy

Similar Messages

  • Serial Command Sent with XP machine different than sent with WIN2000 machine

    I need to communicate with a device by sending a Hexadecimal command (AA00 0000).  I am using Portnom to watch what is being sent to the serial port.  When I run my VI on a Windows 2000 computer my command is being wrote to the port and the instrument sends back the requested information.  However when I run the same VI on a WindowsXP machine the lenght is the same (4 bytes) but four dots are being displayed as what is being sent and there is no response from the instrument.  I am running LabView 7.1 on both machines.  Any help would be great.

    Same versions of NI software, especially VISA drivers and MAX?
    Is it a pure serial port on the laptop or a USB to serial converter?
    What is MAX showing for the name of the COM ports, sometimes a laptops port is not always COM1
    Any errors being flagged within the error piping in your vi?
    Have you tried to use Windows Hyperterminal on both PC's, this should eliminate any potential differences in NI software and configurations.
    Proper grounding of the instrument ?
    A lot of questions, I know.
    Message Edited by AnalogKid2DigitalMan on 02-22-2006 11:46 AM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Mail not delivered when sent with the Unix "mail" command

    I am trying to send mail from the Unix command line with the "mail" command. Whenever I try to send an e-mail using a command of the form:
        mail -s 'This is the subject' <email address>
    the mail message always ends up in subdirectories of the postfix "deferred" directory:
        /private/var/spool/postfix/deferred
    It seems that the mail system runs for 60 seconds after an e-mail is sent and during that time I can run "mailq". If I do that I see something like the following:
    -Queue ID- Size ----Arrival Time---- -Sender/Recipient-------
    0195D1534C54 494 Sat Oct 18 11:48:13 [email protected]
    (connect to broadpark.no\[217.13.4.67\]: Operation timed out)
    [email protected]
    040F51556A8C 334 Sat Oct 18 17:42:39 [email protected]
    (connect to broadpark.no\[217.13.4.67\]: Operation timed out)
    [email protected]
    0C408153869D 1992 Sat Oct 18 12:26:48 MAILER-DAEMON
    (connect to broadpark.no\[217.13.4.67\]: Operation timed out)
    [email protected]
    3B10415374FC 1992 Sat Oct 18 12:23:47 MAILER-DAEMON
    (delivery temporarily suspended: connect to broadpark.no\[217.13.4.67\]: Operation timed out)
    [email protected]
    4509815374C0 342 Sat Oct 18 12:21:47 [email protected]
    (delivery temporarily suspended: connect to broadpark.no\[217.13.4.67\]: Operation timed out)
    [email protected]
    4CFC915374C7 2050 Sat Oct 18 12:21:47 MAILER-DAEMON
    (delivery temporarily suspended: connect to broadpark.no\[217.13.4.67\]: Operation timed out)
    [email protected]
        +<lots of lines snipped out>+
    It seems to be complaining that the connection timed out to broadpark.no\[217.13.4.67\], which is the domain of my ISP.
    My outgoing SMTP mail server is:
        mail.broadpark.no\[217.13.6.35\]
    Could it be that mail system is trying to connect to the wrong SMTP mailserver? If so, how can I fix this?
    I should mention that mail flows perfectly in and out of my machine via the Mail.app program. I am only having problem sending mail down at the Unix command line level.
    I had this working on OS X 10.4.x, but this is the first time I have tried this with Leopard.
    Any help/suggestions would be greatly appreciated. Thanks in advance.

    Perhaps I should have been a little bit clearer why I want to be able to send mail via my local mail/postfix system: I have several servers set up on my iMac, in particular:
        apache
        trac
    I want these servers to be able to send mail to, e.g.,
        webmaster@localhost
        root@localhost
        trac@localhost
    I have created aliases for these addresses in:
        /etc/postfix/aliases
    (I have also executed "newaliases"). These aliases all point to my own user account on the same machine (my iMac).
    Finally, I have a .forward file at the root level of my OS X account that forwards all local Unix mail to my normal e-mail account handled by my ISP.
    This way, all local mail sent to "webmaster2, "root", "trac", etc., should be sent to my normal e-mail address that I monitor with Mail.app.
    *This all worked perfectly with Mac OS X 10.4.x,* so I know it should be possible. However, I have only now just tried to set this up 10.5.x (Leopard) and, clearly, I am having problems.
    Perhaps this motivation for wanting to send e-mail via the Unix mail system will help others understand my situation, and I hope someone can point me in the right direction. Thanks very much in advance.

  • TS2634 My iphone headphones with microphone don't work.  Any suggestions?

    My iphone headphones with microphone have stopped working, and they are under warranty.  I am having difficulty getting an answer about what to do from Apple - just got off the phone with them, and they emailed me an article that was of no help at all.  Any suggestions as to how I can resolve  this issue would be greatly appreciated.

    All, I have this same problem and has just solved it on my iPhone.
    I read up on the problem at att.com/esupport and arrived at the link below:
    https://www.att.com/esupport/article.jsp?sid=KB413495#fbid=ahhj00ALH45
    "If your email address is linked to your AT&T Access ID, changing your AT&T Access ID password automatically changes your email password to the same password. 
    If you use your email address as your AT&T Access ID, changing your email password automatically changes your AT&T Access ID password to the same password."
    I have a ATT Uverse (for my internet access) acct and could not log on so I requested for password reset. They sent me temp password and I had to change my password to my Uverse acct. I use my att.net email as the log on for my Uverse acct. Per att instructions above, my Uverse acct is linked to my att.net email, so now my att.net email pw has been changed to the pw for my Uverse acct.
    Accordingly, go into your iPhone Settings, Mail, Contacts, Calendars, choose your Att.net mail acct and change your password.  In my case I changed it to the new pw I had set up for my Uverse acct and it works.
    Before doing this, I had also added new servers as shown below. The way I see it because your iPhone will try in succession to log on to each server from top to bottom of the list, it's best to add all the mail servers.
    smtp.mail.yahoo.com
    smtp.mail.att.net
    outbound.att.net
    Please note that I did not have to add "imap.mail.att.net" and my Att.net mail on my iPhone still works.
    Hope this helps.

  • The default priority setting in Mail is set to "normal"  and is causing emails I send to be sent with red priority flag. How can I set default priority to low = no flag?

    The default priority setting in Mail is set to "normal"  and is causing emails I send to be sent with red priority flag.
    I have found the flags to reduce the priorty level manually to "low Priorty", but how can I set default priority to low = no flag?
    Thank you for advising,

    Try deleting the .plist.
    Quit the application.
    In Finder hold down the option/alt key while selecting the Go menu item. Select Library. Then go to Preferences/com.apple.mail.plist. Move the .plist to your desktop.
    Open the application and test. If it works okay, delete the plist from the desktop. 
    If the application is the same, return the .plist to where you got it from, overwriting the newer ones.
    If you want to make your user library permanently visible, run the below command in Applications/Terminal.
    chflags nohidden ~/Library/
    You will need to do that after any updates.

  • Problems with microphone sound in iChat

    Hello Ralph,
    (I already thought I sent this but I didn't see it as a new topic, so I am trying again). I'm new to this discussion thing, it's my first time so I hope I've submitted this correctly.
    I have similar, but extended and more complicated problems with "microphone sound in iChat". (Sorry, this email is a bit lenghty becuase I have already done a lot of my homework on trouble shooting this.)
    I began by using iChat with a high impedance microphone (from an old 1970'scassette player) PLUGGED DIERCTLY IN THE THE MICROPHONE INPUT on the back of my G4 tower. (I DO NOT have a video camera). My Mom in Canada can hear me okay on it, only if I "eat" the microphone. (My Mom DOES have a video camera).
    SO I BOUGHT AN iMic. I also bought a new condenser mic to go with my new iMic. I plugged iMic in and adjusted the sound preferences selection. I switched the iMic to "Mic". It did not work. The old cassette mic did not work at all with iMic either. My Mom could not hear me, and my "VU METER bar levels" on my iChat were not registering. (If I plug the condenser mic directly into the tower, Mom can hear me only if I "eat" the condenser microphone).
    Next, with iMic, I wanted to try my Shure 58 microphone instead. My friend (who is an audio tech) made me a 1/8" to XLR (sheilded) cable. I made sure I had adjusted the sound preferences and switched the iMic to "Mic". The Shure 58 did not work with iMic. It also did not work plugging directly into the tower.
    Next, with iMic, I wanted to try my "Plantronics telephone headset". My friend (the audio tech) then made me a 1/8"male to 1/8"mini feamle (sheilded) cable. My headset did not work with iMic. It also did not work plugging directly into the tower.
    My friend, the audio tech, then made me second cable 1/8"male to 1/8"female (sheilded) cable. This cable I had him make 50 feet long so I could move to other areas in my home while audio chatting - so I don't have to be trapped in my office while talking. We ran the cable from iMic to the Old cassette mic and the new condenser mic. They did not work with iMic.
    We also tried plugging the new 50ft cable directly into the back of the G4 Tower and it worked with the old cassette mic and the new condenser mic, BUT the volume was reduced and there was a loud baseball game being broadcast through the cable - according to my Mom. I could not hear anything from my end - not my own voice and not the baseball game! IS THERE A WAY FOR ME TO MONITOR (actually hear) THE SOUND THAT SHOULD BE COMING THROUGH THE MIC?
    I have tried to trouble shoot these issues on line, but can't seem to find the right solutions. In one of your discussions I read that you suggested to select the iChat preference for Video and select microphone. I CANNOT SEE THE FULL WINDOW UNDER iChat Video Preferences!!!! All I can see is the top half of a large empty box that says "There is no camera attached to this computer". (That's because I have no camera, but I DO HAVE a microphone).
    I also found some support about adjusting microphone levels using iMovie. I do not have iMovie on my Mac.
    Yes, I have already adjusted the AUDIO MIDI SETUP settings.
    My audio tech friend and I are both baffled. iMic is useless to me so far - perhaps you can help to get me up and chatting properly? Do I really need iMovie and/or a video camera to fix this???
    BY THE WAY: When I plug my external speakers into iMic and select iMic in preferences for output, my speakers and sound is very inferior to the using the speaker terminal on my tower. i Mic is supposed to better???????
    Thanking you for your help in advance,
    Marlene
    (Please could you, would you, email a copy of your answer to me at [email protected])
    G4, 450Mhz   Mac OS X (10.4.6)  
    G4, 450Mhz   Mac OS X (10.4.6)  
    G4, 450Mhz   Mac OS X (10.4.6)  

    Hi Ralph,
    A funny thing just happened...
    The iChat prefernce window for "VIDEO" finally opened (!!) all the way, so for the FIRST TIME EVER and I was able to see the microphone setting at the bottom of the window. (Because I have NO CAMERA, the window would never fully open before during the 100 or so times I tried to get it to open before. This must've been a fluke because now it won't fully open again).
    While it was open I set the microphone setting to iMic, plugged my condenser mic into iMic and IT WORKED. Then I tried the long (baseball game) extension cord in the iMic (attached to the condenser mic) and IT WORKED TOO - with NO BASEBALL GAME!
    I still have to have the condenser mic right up to my mouth, which shouldn't be - but considering I have spent a few weeks trying to troubleshoot this, "eating the mic" is only a minor annoyance at this point.
    I just plugged my speakers into iMic and THEY WORK GREAT!
    SO ALL MY PROBLEMS WERE BECAUSE: I could not set the microphone under Video in iChat preferences because the VIDEO PREFERENCE WINDOW DOES NOT FULLY OPEN WITHOUT A CAMERA ATTACHED. If it hadn't opened by fluke my iMic would still not be working.
    I guess I'm all set now. Unless you have a suggestion why the condenser mic isn't picking up my voice from other than right by my mouth? It should be able to be a foot or two away at least.
    Thanks Ralph,
    Marlene
    (By the way, I never did trash the com.apple.ichat.plist)
    G4, 450Mhz   Mac OS X (10.4.6)  

  • Long Delay When Print Commands Sent To HP Wireless Officejet

    I have an HP Officejet Pro 8500 connected via a wireless connection to my home LAN. I have a late 2009 iMac (ethernet connection) running the latest release of Snow Leopard. Both the HP printer device and scanner device show up as installed in the Print & Fax settings of preferences with full functionality and they both work. The printer is normally idle (in sleep mode) until one sends a command. Any print command sent from any Mac OS X application to the device takes about 40 seconds to wake up the device if it is idle. Print commands sent from Windows XP applications running via a bootcamp partition wake up the printer instantly.  Print commands sent from any other Windows OS based computer connected wirelessly on the LAN also wake the HP instantly.
    I would appreciate any ideas as to why there is this delay when printing from Snow Leopard.

    I installed from the HP CD that came with the Officejet. It says MAC OS X v104, v10.5, Version 9.8.0 (I assume this is the HP version) and then updated to the 2/11 Apple HP Driver update. So I appear to have followed your advice.
    Note that Print & Fax preferences shows 2 devices for the Officejet. One is the printer and the other device is the fax. The printer has both printer and scan tabs. The fax does work as I just tried it. When I open the printer utility for the printer from within preferences, two devices are listed: The printer (green) and I can access the settings. The Fax identifed in its name as being at teh same ip address, but is is in red and the settings can not be accessed.
    I opened the embedded web server to look at all the settings. I'm using DHCP.
    Here is what I found under Networking:
    Host name is correct.
    Proxy setting are blank, which is correct.
    Network Protocols are set to Both IPv4 and IPv6
    Under Wireless: IPv4 Addressing is set to Automatic IP & Automatic DNS Server. IPv6 is empty. The Advanced settings are all under Infrastructure and correct. Ad Hoc settings are blank. Compatibility has the 2nd item checked that says in an Ad Hoc network use 811.b behavior.
    Anything else that may be helpful

  • Error MSB3073: The command exited with code -1

    I am getting this error while deploying the biztalk project from visual studio using Deployment Framework for Biztalk (BTDF).
    Please guide me what needs to be done. Here's the code :-
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    Deployment Framework for BizTalk
    Copyright (C) 2008-14 Thomas F. Abraham, 2004-08 Scott Colestock
    -->
    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Installer" ToolsVersion="4.0">
    <PropertyGroup>
    <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
    <Platform Condition="'$(Platform)' == ''">x86</Platform>
    <SchemaVersion>1.0</SchemaVersion>
    <ProjectName>HelloWorld</ProjectName>
    <ProjectVersion>1.0</ProjectVersion>
    <IncludeOrchestrations>False</IncludeOrchestrations>
    <IncludeTransforms>False</IncludeTransforms>
    <IncludeSSO>True</IncludeSSO>
    <UsingMasterBindings>True</UsingMasterBindings>
    <RequireXmlPreprocessDirectives>False</RequireXmlPreprocessDirectives>
    <ApplyXmlEscape>True</ApplyXmlEscape>
    <SkipIISReset>True</SkipIISReset>
    </PropertyGroup>
    <PropertyGroup>
    <!-- Properties related to building an MSI for server deployments -->
    <!-- BizTalk App Version Upgrade -->
    <!-- For each new product release to be deployed to your BizTalk servers: -->
    <!-- 1) Increment ProductVersion -->
    <!-- 2) Generate a new GUID and update ProductId with the new GUID -->
    <!-- This allows the new MSI to automatically uninstall (not undeploy!) the old MSI and install the new one. -->
    <ProductVersion>1.0.0</ProductVersion>
    <ProductId>084986b1-d675-4383-b0ed-da2e3f4e3998</ProductId>
    <!-- BizTalk App Version Upgrade -->
    <ProductName>HelloWorld for BizTalk</ProductName>
    <Manufacturer>Deployment Framework User</Manufacturer>
    <PackageDescription>HelloWorld</PackageDescription>
    <PackageComments>HelloWorld</PackageComments>
    <!-- NEVER change the ProductUpgradeCode. -->
    <ProductUpgradeCode>4975288c-1b94-4d42-868b-f166cdc02224</ProductUpgradeCode>
    </PropertyGroup>
    <!-- Under TFS Team Build, set CustomizableOutDir property to true in TFS 2005/2008/2010 UpgradeTemplate. -->
    <!-- With a workflow build, copy the default template then modify the MSBuild task for the solution build. Set OutDir to blank and -->
    <!-- CommandLineArguments to String.Format("/p:SkipInvalidConfigurations=true;TeamBuildOutDir=""{0}"" {1}", BinariesDirectory, MSBuildArguments). -->
    <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
    <OutputPath Condition="'$(TeamBuildOutDir)' == ''">bin\Debug\</OutputPath>
    <OutputPath Condition="'$(TeamBuildOutDir)' != ''">$(TeamBuildOutDir)</OutputPath>
    <DeployPDBsToGac>false</DeployPDBsToGac>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)' == 'Release'">
    <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
    <OutputPath Condition="'$(TeamBuildOutDir)' == ''">bin\Release\</OutputPath>
    <OutputPath Condition="'$(TeamBuildOutDir)' != ''">$(TeamBuildOutDir)</OutputPath>
    <DeployPDBsToGac>false</DeployPDBsToGac>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)' == 'Server'">
    <DeploymentFrameworkTargetsPath>Framework\</DeploymentFrameworkTargetsPath>
    <!-- Get our PDBs into the GAC so we get file/line number information in stack traces. -->
    <DeployPDBsToGac>true</DeployPDBsToGac>
    </PropertyGroup>
    <ItemGroup>
    <PropsFromEnvSettings Include="SsoAppUserGroup;SsoAppAdminGroup" />
    </ItemGroup>
    <!-- !!! TODO !!! -->
    <!-- Add ItemGroup elements that contain one or more Schemas, Orchestrations, Transforms, etc. elements that describe -->
    <!-- the specific artifacts in your solution that need to be deployed. Use IntelliSense as a guide. -->
    <ItemGroup>
    <Schemas Include="HelloWorld.dll">
    <LocationPath>..\$(ProjectName)\bin\$(Configuration)</LocationPath>
    </Schemas>
    </ItemGroup>
    <!-- !!! TODO !!! -->
    <Import Project="$(DeploymentFrameworkTargetsPath)BizTalkDeploymentFramework.targets" />
    <!--
    The Deployment Framework automatically packages most files into the server install MSI.
    However, if there are special folders that you need to include in the MSI, you can
    copy them to the folder $(RedistDir) in the CustomRedist target.
    To include individual files, add an ItemGroup with AdditionalFiles elements.
    -->
    <Target Name="CustomRedist">
    </Target>
    </Project>
    Error :-
    Starting build...
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe "C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj" /nologo /t:Deploy /p:Configuration=Debug
    Build started 08-04-2015 17:43:51.
    Project "C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj" on node 1 (Deploy target(s)).
    SetModeDeploy:
    DEPLOYING APPLICATION TO BIZTALK...
    SetWinVer:
    Running on Windows V62
    Detected IIS 7
    Detected 64-bit OS
    GetSoftwarePaths:
    Using .NET Framework Install Path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319'.
    Using BizTalk Install Path 'C:\Program Files (x86)\Microsoft BizTalk Server 2013\'.
    Using Deployment Framework Install Path 'C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\'.
    Using Deployment Framework Tools Path 'C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools'.
    Using BizTalk ESB Toolkit Install Path 'C:\Program Files (x86)\Microsoft BizTalk ESB Toolkit\'.
    ExportSettings:
    "C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\EnvironmentSettingsExporter.exe" "C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\SettingsFileGenerator.xml" "C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings"
    Environment Settings Spreadsheet to XML Exporter 1.6.1
    [http://EnvSettingsManager.codeplex.com]
    Copyright (C) 2007-11 Thomas F. Abraham. All Rights Reserved.
    Importing from SettingsFileGenerator.xml...
    Output format is XmlPreprocess (multi-file).
    Exporting to Exported_LocalSettings.xml...
    Exporting to Exported_DevSettings.xml...
    Exporting to Exported_TestSettings.xml...
    Exporting to Exported_ProdSettings.xml...
    Finished.
    InitSettingsFilePath:
    Using settings file C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml
    SetPropertiesFromEnvironmentSettings:
    Setting properties from environment settings file (C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml)
    Setting property to value 'BizTalk Application Users'.
    Setting property to value 'BizTalk Server Administrators'.
    InitializeAppName:
    BizTalk Application Name is HelloWorld
    PreprocessBindings:
    Checking syntax of XML file 'C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindingsMaster.xml'...
    Syntax of XML file 'C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindingsMaster.xml' appears to be valid.
    Clearing file attributes for 'PortBindings.xml'.
    "C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\xmlpreprocess.exe" /v /c /noDirectives /i:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindingsMaster.xml" /o:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml" /d:CurDir="C:\BTDF\Walkthrough1" /s:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml"
    XmlPreprocess v2.0.18.0
    Copyright (c) 2004-2013 Loren M Halvorson
    XML File Preprocessor
    Settings XML file: "C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml"
    Preprocessing "C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindingsMaster.xml" to "C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml"...
    PortBindings.xml : Set the value 'HelloWorld' of 2 node(s) matching XPath '//ApplicationName'.
    "C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\ElementTunnel.exe" /i:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml" /o:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml" /x:"C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\adapterXPaths.txt" /encode+
    Nested XML Encoder/Decoder v5.5.100.0
    Copyright (C) 2005-2014 Scott Colestock, Tim Rayburn, Thomas F. Abraham
    XML encodes/decodes content of element(s) by XPath. Applies escaping rules such
    as &gt; for '<'. Namespace decls, PIs, etc. of nested XML are not preserved.
    XPaths : 16
    Transformed Nodes : 0
    Empty Nodes (skipped) : 3
    No Transform Req'd (skipped) : 3
    Total Matched Nodes : 6
    Complete - output file has been saved.
    Checking syntax of XML file 'C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml'...
    Syntax of XML file 'C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml' appears to be valid.
    DeployFileAdapterPhysicalPaths:
    Configuring FILE adapter physical paths from binding file PortBindings.xml...
    Processing FILE adapter physical paths (Send)...
    Setting up path 'C:\BTDF\Walkthrough1\Out'...
    Directory already exists.
    Granted 'BUILTIN\Users' Full Access permissions.
    Processing FILE adapter physical paths (Receive)...
    Setting up path 'C:\BTDF\Walkthrough1\In'...
    Directory already exists.
    Granted 'BUILTIN\Users' Full Access permissions.
    TerminateServiceInstancesConditional:
    Attempting to terminate all service instances for BizTalk app 'HelloWorld'...
    Terminated 0 service instances for BizTalk app 'HelloWorld'.
    VerifyBizTalkAppExists:
    Checking for existence of BizTalk application 'HelloWorld'...
    Did not find BizTalk application 'HelloWorld'.
    DeployAppDefinition:
    BTSTask.exe AddApp -ApplicationName:"HelloWorld" -Description:"HelloWorld"
    Microsoft (R) BizTalk Application Deployment Utility Version 3.10.229.0
    Copyright (c) 2013 Microsoft Corporation. All rights reserved.
    Information: Adding new BizTalk application "HelloWorld" to configuration database (server="BDDBESBWMV01", database="BizTalkMgmtDb")...
    Information: Added application "HelloWorld".
    Command succeeded with 0 errors, 0 warnings.
    UndeploySchemas:
    Adding assembly name 'HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f' to item group.
    "C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\gacutil.exe" /u "HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f"
    Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
    Copyright (c) Microsoft Corporation. All rights reserved.
    Number of assemblies uninstalled = 0
    Number of failures = 0
    DeploySchemas:
    BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"..\HelloWorld\bin\Debug\HelloWorld.dll" -ApplicationName:"HelloWorld" -Options:GacOnAdd,GacOnImport,GacOnInstall
    Microsoft (R) BizTalk Application Deployment Utility Version 3.10.229.0
    Copyright (c) 2013 Microsoft Corporation. All rights reserved.
    Information: Adding resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f") to application "HelloWorld"...
    Serialized BizTalk assembly "HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f" from "..\HelloWorld\bin\Debug\HelloWorld.dll".
    Information: Validating resources (count=1)...
    * Validating resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f")...
    Information: Performing change requests...
    Information: Calling BeginTypeChangeRequest for all selected resource types...
    PerformingBeginChangeRequest
    Adding resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f") to store.
    Information: * Performing change request on type "System.BizTalk:BizTalkAssembly" (count=1)...
    Information: Deploy server="BDDBESBWMV01" database="BizTalkMgmtDb" assembly="C:\Users\dopdevbiztalkadmin1\AppData\Local\Temp\BT\PID9536\BizTalkAssembly\4b4a4387187988d2dc55c72b16113199\HelloWorld.dll"
    Information: Installed the "C:\Users\dopdevbiztalkadmin1\AppData\Local\Temp\BT\PID9536\BizTalkAssembly\4b4a4387187988d2dc55c72b16113199\HelloWorld.dll" assembly into the Global Assembly Cache. (force=True)
    Information: Deploy operation succeeded.
    Information: Deploy server="BDDBESBWMV01" database="BizTalkMgmtDb" assembly="C:\Users\dopdevbiztalkadmin1\AppData\Local\Temp\BT\PID9536\BizTalkAssembly\4b4a4387187988d2dc55c72b16113199\HelloWorld.dll"
    Saved schema "Microsoft.Samples.BizTalk.HelloWorld.POSchema, HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f".
    Saved schema "Microsoft.Samples.BizTalk.HelloWorld.InvoiceSchema, HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f".
    Saved map "Microsoft.Samples.BizTalk.HelloWorld.POToInvoice".
    Saved message type "Microsoft.Samples.BizTalk.HelloWorld.POMessageType".
    Saved message type "Microsoft.Samples.BizTalk.HelloWorld.InvoiceMessageType".
    Saved port type "Microsoft.Samples.BizTalk.HelloWorld.ReceivePOPortType".
    Saved port type "Microsoft.Samples.BizTalk.HelloWorld.SendInvoicePortType".
    Saved orchestration "Microsoft.Samples.BizTalk.HelloWorld.HelloSchedule".
    Saved schema "Microsoft.Samples.BizTalk.HelloWorld.POSchema, HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f".
    Saved schema "Microsoft.Samples.BizTalk.HelloWorld.InvoiceSchema, HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f".
    Saved map "Microsoft.Samples.BizTalk.HelloWorld.POToInvoice".
    Saved message type "Microsoft.Samples.BizTalk.HelloWorld.POMessageType".
    Saved message type "Microsoft.Samples.BizTalk.HelloWorld.InvoiceMessageType".
    Saved port type "Microsoft.Samples.BizTalk.HelloWorld.ReceivePOPortType".
    Saved port type "Microsoft.Samples.BizTalk.HelloWorld.SendInvoicePortType".
    Saved orchestration "Microsoft.Samples.BizTalk.HelloWorld.HelloSchedule".
    Information: Installed the "C:\Users\dopdevbiztalkadmin1\AppData\Local\Temp\BT\PID9536\BizTalkAssembly\4b4a4387187988d2dc55c72b16113199\HelloWorld.dll" assembly into the Global Assembly Cache. (force=True)
    Information: Deploy operation succeeded.
    Information: Deployed the following 1 BizTalk assemblies:
    HelloWorld.dll
    EXEC : warning : If any of the assemblies were previously loaded by a Host Instance, it may be necessary to restart the Host Instance for changes to take effect. [C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj]
    Information: Commit the change requests...
    * Performing EndTypeChangeRequest for resource type "System.BizTalk:BizTalkAssembly".
    Command succeeded with 0 errors, 0 warnings.
    DeploySharedAssemblies:
    Deploying additional assemblies to GAC...
    "C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\gacutil.exe" /f /i "C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\SSOSettingsFileReader.dll"
    Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
    Copyright (c) Microsoft Corporation. All rights reserved.
    Assembly successfully added to the cache
    Finished deploying additional assemblies to GAC.
    ImportBindings:
    Copying file from "C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml" to "C:\BTDF\Walkthrough1\HelloWorld.Deployment\HelloWorld_PortBindings.xml".
    BTSTask.exe AddResource -Type:BizTalkBinding -Overwrite -Source:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\HelloWorld_PortBindings.xml" -ApplicationName:"HelloWorld"
    Microsoft (R) BizTalk Application Deployment Utility Version 3.10.229.0
    Copyright (c) 2013 Microsoft Corporation. All rights reserved.
    Information: Adding resource (-Type="System.BizTalk:BizTalkBinding" -Luid="HelloWorld_PortBindings.xml") to application "HelloWorld"...
    Information: Validating resources (count=1)...
    * Validating resource (-Type="System.BizTalk:BizTalkBinding" -Luid="HelloWorld_PortBindings.xml")...
    Information: Performing change requests...
    Information: Calling BeginTypeChangeRequest for all selected resource types...
    PerformingBeginChangeRequest
    Updating resource (-Type="System.BizTalk:BizTalkBinding" -Luid="HelloWorld_PortBindings.xml") in store.
    Information: * Performing change request on type "System.BizTalk:BizTalkBinding" (count=1)...
    Information: Commit the change requests...
    * Performing EndTypeChangeRequest for resource type "System.BizTalk:BizTalkBinding".
    Command succeeded with 0 errors, 0 warnings.
    Deleting file "C:\BTDF\Walkthrough1\HelloWorld.Deployment\HelloWorld_PortBindings.xml".
    BTSTask.exe ImportBindings -Source:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml" -ApplicationName:"HelloWorld"
    Microsoft (R) BizTalk Application Deployment Utility Version 3.10.229.0
    Copyright (c) 2013 Microsoft Corporation. All rights reserved.
    Information: Importing bindings "C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml" into application "HelloWorld" in BizTalk configuration database (server="BDDBESBWMV01", database="BizTalkMgmtDb")...
    Information: Imported application "HelloWorld" bindings.
    Command succeeded with 0 errors, 0 warnings.
    DeploySSO:
    "C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\SSOSettingsFileImport.exe" "HelloWorld" /settingsFile:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml" /userGroupName:"BizTalk Application Users" /adminGroupName:"BizTalk Server Administrators"
    Error persisting to SSO:
    System.Runtime.InteropServices.COMException (0xC0002A18): The format of the account name is not valid. Domain accounts must include the domain name. Local accounts must not include a domain or computer name.
    at Microsoft.BizTalk.SSOClient.Interop.ISSOAdmin.CreateApplication(String applicationName, String description, String contactInfo, String userGroupName, String adminGroupName, Int32 flags, Int32 numFields)
    at SSOSettingsFileManager.SSOHelper.CreateApp(String appName, String userGroup, String adminGroup)
    at SSOSettingsFileManager.SettingsFileImport.SaveSettingsToSSO(String affiliateAppName, String inSettings, String userGroupName, String adminGroupName)
    at SSOSettingsFileManager.SettingsFileImport.Main(String[] args)
    C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1701,5): error MSB3073: The command ""C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\SSOSettingsFileImport.exe" "HelloWorld" /settingsFile:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml" /userGroupName:"BizTalk Application Users" /adminGroupName:"BizTalk Server Administrators"" exited with code -1. [C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj]
    Done Building Project "C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj" (Deploy target(s)) -- FAILED.
    Build FAILED.
    "C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj" (Deploy target) (1) ->
    (DeploySchemas target) ->
    EXEC : warning : If any of the assemblies were previously loaded by a Host Instance, it may be necessary to restart the Host Instance for changes to take effect. [C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj]
    "C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj" (Deploy target) (1) ->
    (DeploySSO target) ->
    C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1701,5): error MSB3073: The command ""C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\SSOSettingsFileImport.exe" "HelloWorld" /settingsFile:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml" /userGroupName:"BizTalk Application Users" /adminGroupName:"BizTalk Server Administrators"" exited with code -1. [C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj]
    1 Warning(s)
    1 Error(s)
    Time Elapsed 00:00:54.94

    Hi Pratibha,
    Thank you for posting in MSND forum.
    Since
    this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
    Based
    on your issue, since it is related to the Deployment Framework for Biztalk (BTDF), so I suggest you could consult this issue directly to this Deployment Framework for Biztalk (BTDF) website:
    https://biztalkdeployment.codeplex.com/discussions , you will get better support.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error in Command PrintToPrinter with Crystal version 13.0.1

    We have founded the following error while the command PrintToPrinter with Crystal Report. This kind of error doesn´t happen every time that crystal is called, when this error appears, service fall down and an error is logged on event viewer.Below the error description and source code to call crystal reports.
    ExecutaImpressao method prepare data and load RPT file, while chamarThreadImpressao method start to press and calls EfetivarImpressao.
    Event Type: Error
    Event Source: .NET Runtime
    Event Category: None
    Event ID: 1026
    Date: 18/11/2011
    Time: 10:07:43
    User: N/A
    Computer: SNEPNF02V
    Description:
    Application: Procwork.Software.NFE.WindowsService.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.AccessViolationException
    Stack: at System.Drawing.Internal.IntUnsafeNativeMethods.IntCreateDC(System.String, System.String, System.String, System.Runtime.InteropServices.HandleRef)
    at System.Drawing.Printing.PrinterSettings.CreateDeviceContext(IntPtr)
    at System.Drawing.Printing.StandardPrintController.OnStartPrint(System.Drawing.Printing.PrintDocument, System.Drawing.Printing.PrintEventArgs)
    at System.Drawing.Printing.PrintController.Print(System.Drawing.Printing.PrintDocument)
    at System.Drawing.Printing.PrintDocument.Print()
    at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32, Boolean, Int32, Int32)
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32, Boolean, Int32, Int32) at Procwork.Software.NFE.Impressoes.EfetivarImpressao.ImprimirDanfe()
    at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Threading.ThreadHelper.ThreadStart()
    private bool ExecutaImpressao(dsNFE_NF_TRANSFERENCIA_REL dsDANFE, DanfeType tipoDanfe, PrinterType tipoImpressao, Impressora impressora, PrintMedia media, out byte[] pdf)
                int qtdNotas;
                iParametro.Connection = _cnn;
                string tempoVidaThreadImpressao = iParametro.getParameterValue("tempo_vida_thread_executa_impressao");
                if (tempoVidaThreadImpressao == string.Empty)
                    tempoVidaThreadImpressao = "10";
                qtdNotas = dsDANFE.NFE_NF_CAPA.Rows.Count;
                AssemblyLoader assemblyLoader = new AssemblyLoader();
                // Variáveis utilizadas para chamar o Assembly desenvolvido para desenvolvimento adicional da GM
                const string assemblyName = "RePrinter";
                const string className = assemblyName + "." + "Reimprimir";
                const string assemblyNameImp = "Procwork.Software.NFE.API.ImpAutomatica_GM";
                const string classNameImp = assemblyNameImp + "." + "ImpAutomatica_GM";
                pdf = null;
                bool result = false;
                ReportDocument rptDANFE = new ReportDocument();
                try
    cnn = DBConnection.RestoreConnection(cnn);
                    regEvento.connection = _cnn;
                    if (tipoImpressao == PrinterType.Retrato)
                        reportName = reportPath + "DANFE.rpt";
                    else
                        reportName = reportPath + "DANFE_PAISAGEM.rpt";
                    // Log que so faz sentido para nao-wave, pois pega apenas a primeira nota
                    Utils.WriteWindowsLog(String.Format("Impressora null? {0}. Filial: . Docnum: - GerarDANFE.ExecutaImpressao", impressora == null, dsDANFE.NFE_NF_CAPA[0].COD_FILIAL, dsDANFE.NFE_NF_CAPA[0].DOCNUM), LogLevel.INFORMATION);
                    if (impressora != null || media.Equals(PrintMedia.PDF))
                        updateDsNF(dsDANFE, (Int32)DanfeType.Oficial);
                        try
                            FileStream f = File.OpenRead(reportName);
                            f.ReadByte();
                            f.Close();
                        catch (Exception ex)
                            Utils.WriteWindowsLog(ex.Message, LogLevel.ERROR);
                        IBeforePrintDANFE iBeforePrintDanfe = (IBeforePrintDANFE)assemblyLoader.Load(assemblyName, className);
                        if (iBeforePrintDanfe != null)
                            DataSet dsTransferencia = new dsNFE_NF_TRANSFERENCIA_REL();
                            dsTransferencia.Merge(dsDANFE);
                            iBeforePrintDanfe.DoBeforePrintDANFE(ref dsTransferencia, ref reportName, _cnn.Cnn.ConnectionString);
                            rptDANFE.Load(reportPath + reportName);
                            rptDANFE.Refresh();
                            rptDANFE.SetDataSource(dsTransferencia);
                            foreach (ReportDocument r in rptDANFE.Subreports)
                                r.SetDataSource(dsTransferencia);
                        else
                            rptDANFE.Load(reportName);
                            rptDANFE.Refresh();
                            rptDANFE.SetDataSource(dsDANFE);
                            foreach (ReportDocument r in rptDANFE.Subreports)
                                r.SetDataSource(dsDANFE);
                        rptDANFE.DataDefinition.FormulaFields["EH_MINUTA"].Text = (tipoDanfe == DanfeType.NaoOficial ? "true" : "false");
                        if (media.Equals(PrintMedia.Papel))
                            PrintDocument pd = new PrintDocument();
                            PrinterSettings.PaperSourceCollection psc;
                            if (impressora == null) throw new ArgumentNullException("impressora", "O parâmetro não pode ser nulo quando o MediaType for Papel.");
                            if (impressora.bandeja != -1)
                                PaperSource ps;
                                pd.PrinterSettings.PrinterName = impressora.getNomeImpressora();
                                psc = pd.PrinterSettings.PaperSources;
                                if (psc.Count >= impressora.bandeja)
                                    ps = psc[impressora.bandeja];
                                else
                                    throw new Exception("A impressora: " + impressora.nome + " não suporta a bandeja: " + impressora.bandeja + " !");
                                string printer = "";
                                try
                                    printer = impressora.getNomeImpressora();
                                    rptDANFE.PrintOptions.PrinterName = printer;
                                    rptDANFE.PrintOptions.CustomPaperSource = ps;
                                    rptDANFE.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Manual;
                                catch (Exception ex)
                                    if (ex.Message.ToUpper().Contains("INVALID PRINTER"))
                                        ex.Source = printer;
                                        throw ex;
                                if (!chamarThreadImpressao(rptDANFE, impressora.vias, qtdNotas, tempoVidaThreadImpressao))
                                    gerarErro(dsDANFE, rptDANFE);
                            else
                                string printer = "";
                                try
                                    printer = impressora.getNomeImpressora();
                                    rptDANFE.PrintOptions.PrinterName = printer;
                                catch (Exception ex)
                                    if (ex.Message.ToUpper().Contains("INVALID PRINTER"))
                                        ex.Source = printer;
                                        throw ex;
                                if (!chamarThreadImpressao(rptDANFE, impressora.vias, qtdNotas, tempoVidaThreadImpressao))
                                    gerarErro(dsDANFE, rptDANFE);
                            IAfterPrintDANFE iAfterPrintDanfe = (IAfterPrintDANFE)assemblyLoader.Load(assemblyNameImp, classNameImp);
                            if (iAfterPrintDanfe != null)
                                DataSet dsTransferencia = new dsNFE_NF_TRANSFERENCIA_REL();
                                dsTransferencia.Merge(dsDANFE);
                                iAfterPrintDanfe.DoAfterPrintDANFE(dsTransferencia, _cnn.Cnn.ConnectionString, pd);
                        else if (media.Equals(PrintMedia.PDF))
    #if !DEBUG
                            using (Stream pdfStream = rptDANFE.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat))
                                pdf = new byte[pdfStream.Length];
                                pdfStream.Read(pdf, 0, pdf.Length);
    #else
                            rptDANFE.ExportToDisk(
                                CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
                                , @"C:NFEpdfTemp" + Guid.NewGuid() + ".pdf"
                            pdf = new byte[1];
    #endif
                        result = true;
                        //RegistraEvento(dsDANFE, "513");
                finally
                    //Força sempre fechar o objeto Report (Para não estourar a quantidade máxima de jobs)
                    try
                        rptDANFE.Close();
                    catch { }
                    rptDANFE.Dispose();
                return result;
    #region chamarThreadImpressao
    private static bool chamarThreadImpressao(ReportDocument rpt, int vias, int qtdNotas, string tempo)
    bool retorno = false;
    int tempoCalculado = ((Convert.ToInt32(tempo)) * 1000) * qtdNotas;
    EfetivarImpressao ei = new EfetivarImpressao();
    ei.Rpt = rpt;
    ei.Vias = vias;
    ThreadStart threadStart = ei.ImprimirDanfe;
    Thread thread = new Thread(threadStart);
    try
    thread.Start();
    //Se entrar no if é por que a execução demorou menos que o tempo estipulado no Join
    if (thread.Join(tempoCalculado))
    if (ei.LastError != null)
    throw ei.LastError;
    retorno = true;
    catch (Exception ex)
    Utils.WriteWindowsLog(ex.Message, LogLevel.WARNING);
    finally
    if (thread.IsAlive)
    thread.Abort();
    return retorno;
    #endregion
    }public class EfetivarImpressao
    #region Declarações
    private ReportDocument rpt;
    private Exception lastError;
    private int vias;
    #endregion
    #region ImprimirDanfe
    public void ImprimirDanfe()
    bool retryImpressao = true;
    int numeroTentativaimpressao = 0;
    while (retryImpressao && numeroTentativaimpressao <= 5)
    try
    numeroTentativaimpressao++;
    if (vias > 0)
    rpt.PrintToPrinter(vias, false, 0, 0);
    retryImpressao = false;
    else
    rpt.PrintToPrinter(1, false, 0, 0);
    retryImpressao = false;
    catch (Exception ex)
    // Só sobe a exception a partir da quinta tentativa
    if (numeroTentativaimpressao > 5)
    lastError = ex;
    #endregion
    #region Propriedades
    public int Vias
    set { vias = value; }
    public ReportDocument Rpt
    set { rpt = value; }
    public Exception LastError
    get { return lastError; }
    #endregion

    Hello,
    First thing to do is upgrade to Service Pack 2 and runtime.
    then search this forum for PrintOutputController to handle the printing. P2P is limited in it's abilities and functionality and will not be fixed or updated.
    Update your Printer Drivers and if it's a web app search MSDN for info on how to expose the WEB server to your printers.
    Don

  • My mother used to be the bill payer on my iTunes account so now every time I send an email from my iCloud account it sent with her name, how can I change the settings so emails are sent from myself?

    My mother used to be the bill payer on my iTunes account so now every time I send an email from my iCloud account it sent with her name, how can I change the settings so emails are sent from myself?
    I've changed the bill payer to myself but it stills says on emails that I sent that its from my mother.

    In order for the "From" field to show you options on the "from" addresses available, you must set them up in the Preferences > Accounts first.
    I can't show you a screen shot of the from field because I currently only have one account, so the from address used is the default. However, when I had more than one, then options will show up in your compose/reply window.
    You'd need to add an account here:

  • The messages sent with PC suite are not saved in m...

    I have a bluetooth device to connect my phone (Nokia 6233) to PC. When I'm trying to send a message everything goes perfect (the message is sent) only one problem appear: the message is not saved in my phone.
    Any ideas for this problem?
    Why the messages sent with PC suite are not saved in my phone?

    there may be differencies between phone models here (S60 devices or S40 devices, you have S40). Also if I recall right, it used to be so that some older versions of PC Suite did not save the PC sent sms's to phone.
    However, with my N95 the messages are saved. So make sure you have the latest Pc Suite and then try again. If it fails, then it might be that message saving is not supported with S40 phones (Anyone having a S40 phone could verify this)

  • How to install adobe flash player through command line with some script

    Hi Guys,
    Do you know how to install adobe flash player through command line with some script?
    Thanks,
    Galina

    Windows. I tried silent install  with "install_flash_player.exe /install" but it works only with one file that I downloaded from adobe.com - "install_flashplayer10_mssd_aih.exe". But it is possible to download this last file only one time, every next time it redirects me to download install_flash_player.exe file.

  • Can attachments be sent with mail from an Ipad

    Can attachments be sent with mail from an Ipad?

    Please ignore this question as I have just found the answer filed by other users.

  • Can I buy a headset with microphone for my 13" MACBOOK PRO?

    There is only one hole to plug an earphone, and when i record in my software, and i replay it. it sounds strange. so i'm trying to change a microphone.
    is the headset with microphone for A1278 on sale? could somebody give me an sale net address?

    Thank you. I know what you mean. Apple can support earpiece and microphone in one plug.
    When I ask about this question, my MBP had trouble in Windows XP.
    I'm Chinese, and there is a software named DynEd. I was using it to record my voice,that voice changed when I replay. It just like an iPhone app:Talking Prez.
    And then I reinstall my windows system. Now I'm using Windows 7, and the question resolved.
    Maybe 4GB memory is too big for WinXP x32.
    What do you think?

  • Has anyone had a problem with Draft Emails getting sent with Mac OS 10.8.2? It just happened to me and sent a few drafts out to a potential employer I planned on sending out torrow.

    Has anyone had a problem with Draft Emails getting sent with Mac OS 10.8.2? It just happened to me and sent a few drafts out to a potential employer I planned on sending out tomorrow.

    Hi, one question & one suggestion...
    What possible things are connected at home but not at the store, inlude every cable, etc.
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

Maybe you are looking for