Script to remove all printers

I'm trying to find a script to remove all current and stale printers on some TS sessions.  I've tried a couple of scripts but they all seem to error one way or another.  Firstly I've tried
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters = objWMIService.ExecQuery _
("Select * From Win32_Printer Where Network = True")
For Each objPrinter in colInstalledPrinters
objPrinter.Delete_
Next
But I get an invalid parameters on Line 6 with code 80041008 and source SWbemObjectEx.  I've also tried
'Define Variables and Objects.
Set WshShell = CreateObject("Wscript.Shell")
Const NETWORK = 22
Set objNetwork = CreateObject("WScript.Network")
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colPrinters = objWMIService.ExecQuery("Select * From Win32_Printer")
For Each objPrinter in colPrinters
If objPrinter.Attributes And NETWORK Then
strPrinter = objPrinter.Name
objNetwork.RemovePrinterConnection strPrinter
End If
Next
'Note: Gpupdate command has to be run twice as the ECHO command can't answer more than one question.
'Refresh the USER policies and also answer no to logoff if asked.
Result = WshShell.Run("cmd /c echo n | gpupdate /target:user /force",0,true)
'Refresh the Computer policies and answer no to reboot.
Result = WshShell.Run("cmd /c echo n | gpupdate /target:computer /force",0,true)
'Hand back the errorlevel
Wscript.Quit(Result)
But with this one I get an error on line 16 with 'This network connection does not exist' and code 800708CA and source WSHNetwork.RemoveNetworkDrive.
Only solution at the moment I can think of is to just remove them all from the registry but would rather do it user based via script.

hmmmm.  The ones set by GPO are fine as they are the ones that are meant to stay it's just that there are a lot of rubbish printers sat on peoples user profiles that are old and non-existent so we just want to wipe all the old and just keep the new

Similar Messages

  • Remove all gaps

    Is there a way to 'remove all gaps' between footage items in a timeline?
    Does Premier have scripts like AE?
    Why not?
    Someone could then write a script that removes all gaps in a timeline.

    Hiya Todd,
    I've done a 'product request' with Adobe before and I'm not a fan of the system.
    A user submits a request and then what???
    Is there a way to see the list of request so users can add votes, comments, or discussions?
    There was no feedback at all when I posted to the request page.
    Can't say I'm surprised by this response as I've long thought that the Premier team liked to ignore the users.
    It's only since CS 5 that I've had any sort of impression that the Premier team cares about selling product at all!
    Lets be honest, Premier 'braked' pretty hard when the guys left to build Final Cut.
    I'd rather post in a public forum to see what sort of feedback one gets from the community.
    I guess I've been spoilt by the Red camera forums where users are encouraged to feedback to the company and each other.
    I'm an AE user and I'm used to a much more energetic development.
    What is it with the basic wipes???? There is no soften edge or motion blur. Do I have to use the plugins 'that look like they were ripped straight out of AE' that require me to place the clip in the layers above???
    Why does Premier take five times longer to preview a clip from a series of TIFFs then AE?
    When I jump to a Sub Comp in AE the CTI jumps to the same relative frame in the subclip. Why doesn't Premier do the same?
    I wish the blasted 'generate preview timeline' hot key was the same as AE (0 on the keypad)!
    I get that the team doesn't want to spend time building in each and every little feature request, so bolt in a Python scripting engine.
    Look FCP isn't FCP any more so go and rip off all the features that were added to it instead of Premier, and steal features from AE (especally their work metadology)

  • Need Script to remove unused elements...

    anyone know of a script to remove:
    all unused paragraph styles
    all unused character styles
    all unused swatches
    all unused table styles
    all unused cell styles
    all unused object styles
    all unused master pages
    Please let me know

    Can you not tag along a running discussion with a totally different subject?
    Please keep the forum tidy and use the Start a discussion link to start a new discussion. It also helps to enter a descriptive title; "please help me" is not one.

  • Remove All Missing Links with frames

    How can I make a script to remove all missing links with frames In indesign?
    var doc = app.activeDocument;
    var links = doc.links;
    for (var i = links.length-1; i >= 0; i--) {
    if (links[i].status == LinkStatus.LINK_MISSING) {
      try {
       links[i].parent.remove();
                 var image = link.parent;
              var frame = image.parent;
              frame.remove();
              counter++;
      catch (err) {
       $.writeln(i + " - " + err);
    I try this script, but still remain a frame, what's wrong with that?

    @Harvey – in priciple nothing's wrong with that.
    But you need only to remove the parent.parent of the found link.
    You could also resolve the object that is behind parent.parent to make sure it will work:
    var myContainerToRemove = links[i].parent.parent.getElements()[0];
    myContainerToRemove.remove();
    No container, no image, no link ;-)
    Of course that will leave a container frame behind, if the container of the graphic is itself nested into another object.
    This could be a Texts object (together with a text frame) or a SplineObject like a Rectangle, Oval, Polygon, a Button as well as a State inside an MSO…
    A remnant could also be a Group object containing only one page item…
    Depends on how the page items are used and the layout is constructed.
    Uwe

  • How to remove all scripts on object instances?

    I'm looking for any kind of solution here, besides disabling the warning.
    I hate it when I'm converting someone else's AS2 project to AS3, and there's code buried on an onstage instance somewhere, which gives me the warning:
    "Actions on button or MovieClip instances are not supported in ActionScript 3.0. All scripts on object instances will be ignored."
    How can I:
         A) Find which instances have code on them.
              or
         B) Remove all code on all instances.
    Idea:
    Can I save as a different format/version/something and lose this data somehow. Then I could convert it back its current FLA format?

    YES!!! So awesome!!  Thanks

  • PowerShell script to Retract & Remove all farm solutions

    Hi,
    I need the PowerShell script to Retract & Remove all SharePoint farm solutions.
    Single solution Retract & Remove
    Uninstall-SPSolution -Identity <Solution name.wsp>
    ex: Uninstall-SPSolution -Identity Solution.wsp
    Remove-SPSolution -Identity <Solution name.wsp>
    ex: Remove-SPSolution -Identity Solution.wsp

    Install & Uninstall solutions from folder
    file name - installwsp.ps1
    Add-PsSnapin Microsoft.SharePoint.PowerShell
    #Do not modify anything in the script from here onwards
    function Get-ScriptDirectory
    $Invocation = (Get-Variable MyInvocation -Scope 1).Value
    Split-Path $Invocation.MyCommand.Path
    function Deploy-Solution{
    param(
    [string]$physicalPath,
    [string]$name)
    $SolutionName = $name
    $SolutionPath = Join-Path ($physicalPath) $SolutionName
    echo "Extracting information from $physicalPath"
    #Admin service
    $AdminServiceName = "SPAdminV4"
    $IsAdminServiceWasRunning = $true;
    if ($(Get-Service $AdminServiceName).Status -eq "Stopped")
    $IsAdminServiceWasRunning = $false;
    Start-Service $AdminServiceName
    Write-Host 'SERVICE WAS STOPPED, SO IT IS NOW STARTED'
    #Uninstall
    Write-Host 'UNINSTALLING SOLUTION ...'
    $Solution = Get-SPSolution | ? {($_.Name -eq $SolutionName) -and ($_.Deployed -eq $true)}
    if ($Solution -ne $null)
    if($Solution.ContainsWebApplicationResource)
    Uninstall-SPSolution $SolutionName -AllWebApplications -Confirm:$false
    else
    Uninstall-SPSolution $SolutionName -Confirm:$false
    while ($Solution.JobExists)
    Start-Sleep 2
    Write-Host 'SOLUTION HAS BEEN UNINSTALLED SUCCESSFULLY.'
    Write-Host 'REMOVING SOLUTION ...'
    if ($(Get-SPSolution | ? {$_.Name -eq $SolutionName}).Deployed -eq $false)
    Remove-SPSolution $SolutionName -Confirm:$false
    Write-Host 'SOLUTION HAS BEEN REMOVED SUCCESSFULLY.'
    Write-Host 'ADDING SOLUTION ...'
    Add-SPSolution $SolutionPath | Out-Null
    Write-Host 'SOLUTION HAS BEEN ADDED SUCCESSFULLY.'
    Write-Host 'DEPLOYING SOLUTION ...'
    $Solution = Get-SPSolution | ? {($_.Name -eq $SolutionName) -and ($_.Deployed -eq $false)}
    #use '-force' paramater to install all commands in this if statement
    if(($Solution -ne $null) -and ($Solution.ContainsWebApplicationResource))
    Install-SPSolution $SolutionName –AllwebApplications -GACDeployment -Force -Confirm:$false
    else
    Install-SPSolution $SolutionName -GACDeployment -Force -Confirm:$false
    while ($Solution.Deployed -eq $false)
    Start-Sleep 2
    Write-Host 'SOLUTION HAS BEEN DEPLOYED SUCCESSFULLY.'
    if (-not $IsAdminServiceWasRunning)
    Stop-Service $AdminServiceName
    #Get Current Physical Path
    $currentPhysicalPath = Get-ScriptDirectory
    #Iterate through all .wsp files in the current Physical Path to deploy solution
    get-childitem $currentPhysicalPath -include *.wsp -recurse | foreach ($_) {Deploy-Solution $currentPhysicalPath $_.name}
    #Remove SharePoint Snapin
    Remove-PsSnapin Microsoft.SharePoint.PowerShell
    Echo Finish
    Usage file name - installwsp.bat
    cd /c %~dp0
    powershell -noexit -file "installwsp.ps1" "%CD%"
    pause
    Anandhan.S Remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

  • (re)pushing and removing network printers deployed through GP

    Hi,
    We're deploying our printers through Print Management, "Deploy with Group Policy" per user.
    All seems to be working pretty well, but I have a few questions:
    1. How can a client remove the printers that were pushed? I've tried a batch script that does the following:
    net stop spooler
    REG DELETE HKEY_CURRENT_USER\Printers\Connections\,,NTCW9,A0_HP4015_BW /f
    net start spooler
    Although messy, it works, but I wonder if there's a different approach?
    Our AD is built in a way that all users from an office belong to the same OU, so changing the GPO settings is not an option. Allowing users to remove GP pushed printers only occurs very rarely, so no elaborate change should be required.
    2. If the above script runs, I notice that the printers are not pushed again to the client. I've tried this with two users. Is there a way to export the pushed printers to something the user can run locally? (script or anything)

    First of all this is a strange request since you are asking how to manually undo a group policy setting that you are purposefully deploying to the end user.  But anyway, if I were tasked with this dilemma and I had users that just couldn't bear
    to be mapped to a printer they don't want to use I would just change the policy so it doesn't apply to all "Authenticated Users" and use group membership instead.  By the way, is this a technical issue you are trying to solve, or are your end
    users complaining cause they have too many printers in their printer selection menu?

  • How to remove all pages from layout? (except Master Page)

    Geetings Experts:
    I'm implementing additional security measures into my 'initialze' event, where I'll check some global variables and render the file unreadable if needed.
    Which object and properties do I access to remove all my pages from the form?
    I would like to createa a function that removes all the sub pages, leavning only the Matster Page, enable a label in the MasterPage and save itself.
    I searched for xfa.layout and Page[n].remove() methods but cannot find any reference to these.
    .presence = "hidden", fulfills my purpose but the pages remian visible and I need for a clean solution no pages are visible.
    I'm advanced in C# but a novice in LC JavaScript, so any comment, reference or code snipet will be greatly appreciated
    Thank you for your time,
    Ivan A. Loreto – Computer Education Technician
    LOMA LINDA UNIVERSITY | School of Allied Health Professions - Department of Physical Therapy
    [PDF Development Platform]
    Windows XP SP3
    Acrobat Pro 9
    LifeCycle Designer ES 8.2

    Hi Ivan,
    The particular syntax of Javascript in LC Designer is different from that used in Acrobat and different (as I understand it) from core javascript and other applications. There are several free guides on the Adobe web site which cover Acrobat and LC:
    http://www.adobe.com/go/learn_lc_scriptingBasics
    http://www.adobe.com/go/learn_lc_scriptingReference
    http://www.adobe.com/go/learn_lc_formCalc
    http://www.adobe.com/devnet/livecycle/articles/Adobe_XML_Form_Object_Model_Refer ence.pdf
    http://www.adobe.com/devnet/acrobat/pdfs/lc_migrating_acrobat_xmlform.pdf
    And a very handy resource (it goes back to version 6, but is still applicable):http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf
    JP Terry's book on LC Forms is very good and we use www.pdfscripting (which is a subscription service). If you are going to be doing a lot of LC Designer work, these may be of help.
    I am not a coder, so I going to try and work through your script. Bear with me if you already have this sorted...
    The script looks ok and you are using the resolveNode method correctly. Seeing topmostSubform in the resolveNode indicates that you imported an existing document into LC. This is fine, but sometimes it restricts some of the functionality.
    For starters I think that mPg is returning null. You can use the following in your script to see what is happening (debugging) and then comment it out:
    console.println("mpg: " + mPg);
    Then when previewing hit control+J to bring up the javascript console, then will show the value of mPg when that script executes.
    Try deleting the SOM up to #pageSet:
    var mPg = xfa.resolveNode("#pageSet.MasterPage1");
    The javascript console will show you when the script is working.
    In relation to the loop, I would advise a few changes:
    for (var i=1; i <= xfa.layout.pageCount(); i++)
         var vPage = ("xfa.form.topmostSubform.Page" + i).toString();
         //console.println("vPage: " + vPage);
         var curPage = xfa.resolveNode(vPage);
         curPage.presence = "hidden"; 
    }//next page
    There are a few things here:
    I would declare i as a variable, not an integer (not sure if it makes a difference);
    I would use pageCount rather than numPages and then <=;
    There was an extra ; at the end of the loop declaration;
    I would break the script into steps and get the full SOM of the page as a variable first and then resolveNode that variable;
    You don't need to go to the current page;
    I tend to name master pages with a capital "P" and pages with a small "p". Personal preference, but it can make tracking script easier.
    Have a crack off that and hopefully you can get it to work,
    Niall
    ps another tip, if you want to reference an object in script. First click on the object you want to script for and then scroll (or click on the master page) for the object you want to reference. Click inside the script editor and then when you move the mouse back into the form, press and hold Control, this will turn the mouse into a "V". When you click on the object you want to reference it will insert the SOM into the script. If it needs the resolveNode it will automatically put that in for you. Holding Shift and Control will insert a fully resolved node.

  • How do I remove ALL Metro/Modern/Universal/Windows Apps without removing the Start Menu?

    So with three separate builds of WTP I've run the PowerShell command to remove Metro/Modern/Universal/Windows Apps. With each build, it also removes the Start Menu. In the thread below, an MS Support person mentioned that that command was only for Windows
    8.x and shouldn't be run on WTP. What? Then why is that command still available? And, why will it remove some Metro/Modern/Universal/Windows Apps, but not others? Are they marked as System required? Why isn't the Start Menu marked as System required? You'd
    think that the start menu would be pretty important.
    https://social.technet.microsoft.com/Forums/en-US/053f63bc-c174-44f1-8f6c-8ead1ad965fb/spartan-and-start-menu-on-10049?forum=WinPreview2014General
    So, with the start menu being an XAML app, how do I safely remove ALL Metro/Modern/Universal/Windows Apps without removing the Start Menu? I have no use for them and don't want them on my computer. Period. There has to be some command like the one we used
    in Windows 8.x that will allow use to remove ALL Metro/Modern/Universal/Windows Apps without removing the Start Menu.
    Don't give an answer like "just right-click and uninstall". That doesn't work for all of these things, and do you know how long it takes to do that for all of those silly things? Too long! That's also not practical for an Enterprise desktop. It's
    also not practical to leave all of that junk on the desktop, so don't suggest that either.
    Dan

    The problem with PowerShell and all of those scripts is that those particular scripts require a lot of typing, or copy and paste, or having to figure out where all of those apps are stored and then insert their convoluted names into the script. For
    me, scripting is like programming. I have no desire to be a programmer/developer.
    I just want an option in Programs and Features to be able to turn these "features" off. We were able to do it in previous versions of Windows. If we didn't want Internet Games, we uncheck the box. If we don't want our users to be able to print
    documents over the Internet, we uncheck the box. And so on down the line for any other "feature" we didn't want our enterprise users to have.
    Or, we could turn those features off using the System Image Manager. Now we have to write some convoluted script with even more convoluted commands for even more convoluted names for things we don't want.
    The easier script in Windows 8.x was just get-appxpackages -online | remove-appxpackages. That removed the majority of the apps for an individual user. The remove-appxprovisionedpackage command, with the convoluted name of the app, would remove them from
    the hard drive - one app at a time, but that doesn't work in Windows 10.
    So, they came up with a DISM command, but that doesn't work in Windows 10 either. I should say that with my limited developer skills I haven't found a way to make it work.
    Again, I have no desire to be a developer/scripter. They are the same thing in my book. I'm a systems engineer. I do operating systems, not write applications.
    Dan
    So, I guess there is no real answer to this question.

  • Java applets won't load, have latest version of java installed, have removed all old versions from the hard drive, java console not working in firefox, any suggestions please ?

    java applets will not load,
    i have run the java test page & i have the latest version installed.
    have removed all old versions of java from my hard drive & restarted the computer.
    i have checked that java is enabled in the plug-ins and it is with version se 6 u22, also something called java development toolkit 6.0.220.4 np runtime script plug-in library for java (tm) deploy.
    if i click on java console in tolls nothing happens

    Hi,
    You might want to look in your control panel for 'Java' icon. It should give you an option to enable java plugin into your browser. Let me know if you still face the issue.
    Thanks!

  • How can you create a paragraph style that removes all spaces and forces everything to lower case?

    Hi,
    Is there anyway of using GREP (or some other magical wizardry) to create a paragraph style that automatically removes all spaces and forces words into lower case?
    Strange request i know....I'm wanting to use it for datamerged email addresses.
    Thanks

    so doing it through InDesign is a work around I'm exploring.
    Excel has the 'LOWER' function and the ability to record macros for a quick find/replace on the spaces - so that's definitely a good option if it can't be solved purely in InDesign.
    You can change case via scripting in InDesign. This AppleScript (OSX only) will set the case of the selected paragraph style to lower. It would be possible to add some code that would strip spaces as well:
    tell application "Adobe InDesign CS6"
        activate
            set StyleList to name of every paragraph style of active document
        set myDialog to make dialog with properties {name:"Document Paragraph Styles"}
        tell myDialog
            tell (make dialog column)
                tell (make border panel)
                    tell (make dialog column)
                        make static text with properties {static label:"Choose a Style", min width:150}
                    end tell
                    tell (make dialog column)
                        set myPresetsDropdown to make dropdown with properties {string list:StyleList, selected index:0, min width:150}
                    end tell
                end tell
            end tell
        end tell
        set myResult to show myDialog
        if myResult = true then
            --+1 gets the correct name because list starts at 0
            set myStyle to item ((selected index of myPresetsDropdown) + 1) of StyleList
        else
            return
        end if
        destroy myDialog
        tell active document
            set myStyle to paragraph style myStyle
            repeat with j from 1 to (count stories)
                repeat with i from 1 to (count paragraphs in story j)
                    if applied paragraph style of paragraph i of story j is myStyle then
                        --defines a variable to replace the generic this_text parameter in the handler
                        set SCText to the contents of paragraph i of story j
                        set contents of paragraph i of story j to my change_case_of(SCText)
                    end if
                end repeat
            end repeat
        end tell
    end tell
    on change_case_of(this_text)
        set the_comparison_string to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
        set the_source_string to "abcdefghijklmnopqrstuvwxyz"
        set the_new_text to ""
        repeat with thisChar in this_text
            set x to the offset of thisChar in the_comparison_string
            if x is not 0 then
                set the_new_text to (the_new_text & character x of the_source_string) as string
            else
                set the_new_text to (the_new_text & thisChar) as string
            end if
        end repeat
        return the_new_text
    end change_case_of

  • Can't remove all Rectangles

    Hi,
    the code below should
    1) open a INDD file
    2) traverse all pages
    3) grab all the rectangles from that page
    4) and delete them.
    things that work:
    the script traverses trough all the pages (4 pages)
    he finds all the rectangles on that page
    but then:
    when there are for example 5 items on that page, he shows me in that there are 5 items on that page, but when he goes in the second while loop, he only does it 3 times, when he actually should loop 5 times... that's so strange.
    Result: a indd file with only a few rectangles removed, and some remain...
    So, if someone could help me/show me, that would be awesome!
    Thanks !
    Tha code!
    destination =  app.open(File("/Users/anders/Desktop/46a93e71-b6bc-477f-abfd-3221f527dc44/VerticalDMA5.in dd"));
    destination.documentPreferences.facingPages = false;
    var pages = destination.pages;
    var page;
    var pageItems;
    var v = 0;
    var z = 0;
    $.writeln ("pages = " + pages.length)
    while(z < pages.length) {
        page = pages[z];
        pageItems = page.rectangles;
        $.writeln ("number of items on page = " + pageItems.count())
        while(v < pageItems.length) {
            pageItem = pageItems[v];
            $.writeln("PageItem: "+pageItem+" ID: "+pageItem.id);
            pageItem.remove();
            v = v + 1;
        v = 0;
        z = z + 1;

    Hi,
    I'm a C++ programmer not a scripter, but the bug is obvious:
    Jou have a list/arry of page items and remove from first to last index incrementing with each iteration.
    This will delete item[0] and increment to list/array index 1, holding the third page item, as you just deleted the first.
    So do a while ( list.length ) delete item[0] or alike.
    Best,
    Peter Schülke

  • How to remove all changes made to an image in Camera Raw -

    In CS4 with latest ver. of Camera Raw, I think there is a way to remove all changes previously made to an image while using Camera Raw.
    In other words after doing this the little icon in the upper right hand corner of an image in Bridge that indicates changes have been applied to an image, should be gone. Another way of asking this would be to say, how can I start all over again with the original image in Camera Raw by removing all changes prefiously made to it in Camera Raw?
    TIA

    Sorry, I don't know the answer to that for sure*.  As a certified old geezer who avoids cluttering his mind with stuff that can easily be looked up in a menu, I stay away from keyboard shortcuts as much as I can, using only those applicable system wide, the most obvious ones in Photoshop like deselect, etc.
    * However, since no such shortcut appears next to the menu command, I doubt there is one.
    You could create an action and assign it a key command, though.  Doh!
    Never mind.  That was a total brain short circuit.  You can't create actions in Bridge.  You'll need a script.  Ask in the Bridge Scripting forum.
    Message was edited by: Ramón G Castañeda

  • Printing - all printers show status of document as deleted

    I upgraded from Leopard to Snow Leopard and am now left out in the cold. Printing does not work. I have updated the HP drivers. I installed the Adobe Collection with Acrobat after upgrading to Snow Leopard. The Adobe Printer does not work either. The console (Error Logs) state something about "Hint: have you tried the RAW image ... something" the other line states that printing failed due to some NSDialog returning some negative number. If I navigate to the CUPS page using localhost:631, I get the HTML source dumped on the screen, but if I go tto localhost:631/admin I get the CUPS web interface.
    1. How can I get my printers working
    2. How do I reinstall just CUPS
    3. I used to have CUPS-PDF printer working, now even that is not working.
    Can I please come-in from the snow to enjoy the warm fuzziness of my Mac once again?
    All of this upgrade just to try out the iPad SDK and no apps in the iPad simulator other than contacts.
    kind regards,
    Jayant C Varma
    Mac Book Pro 15" Mac OS X (10.6.2) iPhone

    Found the reason: Windows Print Spooler is inactive. Lauching CMD.EXE in administrator mode and typing in "net start spooler" resulted in Error no 5, Access denied. I had to hit the right mouse button on the Computer icon, to navigate to Services and locate Print Spooling, wich was stopped. For some reason. From there, i was able to Start spooling services and instantly got all my printers icons back, showing "normal".
    Now, how do I get rid of the extra instances of the P1606 printers? I only need one, really.
    Do I simply "remove" the extra ones?
    BTW, the printer driver was downloaded off the printer through its web interface. Not sure that this somehow caused the problem? But I am tempted to remove all traces of the P1606dn installation and install through the 140MB "normal" driver package?

  • How to remove all instance in a repeatable subform (bis)

    Hi Niall,
    A few years ago, you helped a user who asked "How to remove all instance in a repeatable subform". Please could you do again with approximately the same problem ?
    In a click event, I have the script "_CarteEN.addInstance();". Well ! Many cards appear. To protect them, I put above a mask (it's a button with a background Fill). Now, how can I do to remove all masks with only one click using the resetdata or anything else...
    I try this but it doesn't work.
    while (flowedSubform.CarteEN._CacheCV.count > 2)
         flowedSubform.CarteEN._CacheCV.removeInstance(1);
    Many thanks for your help !

    There is no subform named "flowedSubform"
    The "CacheCV" is not a container object (subform). so you can't access the instanceManger of this object.
    the below lines should work
    while(_CarteEN.count >1)
         _CarteEN.removeInstance(1);
    Nith

Maybe you are looking for

  • Script Update ?

    Can the script below be updated for Photoshop CS5, as well is it possible to add the ability or an option maybe though configurator to have this script Save a Layer Group by a specific name? #target photoshop main(); // It calls the other functions t

  • HELP! I downloaded the new iTunes 10.2.2 but now it wont open.

    I have tried re-downloading it, software updates, etc. but no luck, I still cant get it open. Any suggestions? I am currently running Mac OS X Version 10.6.7 Thanks:)

  • Cannot connect to the service manager portal wcf service

    Hi Guys, I'm having some issues with a fresh installation of the Service Manager 2012 Web Portal where I get the above message. Things I haved tried from reading other forum posts here: I've increased the maxStringContentLength value to 2457600 Added

  • Cisco Prime and UCS 220M3

    Dear folks, I have a confusion in one of my deployments. My client ordered initially a UCS 220M3 server, which came along with a windows CD. It was supposed to be used as an LMS 4.1 server. Later on there were some variation and customer wants to hav

  • Can you set the print margins in Preview?

    Simple question: Is there a way to set the print margins when printing an image from Preview? Thanks, -ME