Stop rolling the the paper out in dot matrix priner once the print is done

Hi,
I have used the below code to print a document and the printer used is dot matrix But,it rolls out the page once the print is done.
I want to control the printer so that it stops rolling out the page once the print is done. Or set the print based on the paper size and stop rolling the paper.
public void Print_Doc(string Path)
try
Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application { Visible = false };
Microsoft.Office.Interop.Word.Document doc = new Microsoft.Office.Interop.Word.Document();
// where did you get this file name?
// as you mentioned, you open your word document here
doc = word.Documents.Open(Path);
// in your button click handler, just call PrintOut() function
// if doc == null, open the document
if (doc == null)
// here i assume fileName has been assigned
doc = word.Documents.Open(Path);
doc.PrintOut();
catch (Exception ee)
MessageBox.Show(ee.Message, "Exception", MessageBoxButton.OK, MessageBoxImage.Error);
return;
Please help me resolve this,
Thanks,
Shreyas M

Not so much wpf there.
Keep an eye out because this thread may be moved to another forum.
I think Word will "throw" the page at end.
You could check the advice here:
https://support.microsoft.com/en-gb/kb/233493?wa=wsignin1.0
See if you have an unwanted page break or something like an outsized table which is making it think it needs to print more.
You might get lucky.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML

Similar Messages

  • When ever the power goes out or I restart my iMac the external hard drive that is used by Time Machine for backups is dismounted ?

    When ever the power goes out or I restart my iMac the external hard drive that is used for backups by Time Machine is dismounted and all backups are gone. I can reselect it and it will start working again, but I am worried if the iMac hard drive should fail will I be left without a backup ?

    fzgy wrote:
    "Mac OS X can't repair the disk.  You can still open or copy files on the disk, but you can't save changes to files on the disk.  Back up the disk and reformat it as soon as you can."
    It's possible a heavy-duty 3rd-party disk repair app can fix it, but they're expensive (DiskWarrior is about $100), and there's no guarantee it can do it.
    Am prompted to reformat but I don't have a good understanding of what this means and how to do it.
    That will erase it.  See Time Machine - Frequently Asked Question #5.
    It sounds very much like the disk is beginning to fail, although it's possible there's a bad port, cable, connection or power supply (if it has its own).
    I'd suggest getting a new one, and using it for your Time Machine backups; once you have a good backup there, reformat the old one (and select Security Options to write zeros to the whole drive -- if that fails, you know the drive is toast).  Use it for secondary backups, per FAQ #27.   If it has failed, get a second new one for secondary backups. 

  • In Word I want to bring the color box out as a separate box in the screen.  I used to could do this, but I no longer can.  Any help?

    In Word I want to bring the color box out as a separate box in the screen.  I used to could do this, but I no longer can.  Any help?

    you cannot create folders for photos on the iPod Touch. you must currently do it on a computer by syncing the iPod with a photo program, and creating folders within that program and syncing them over. kinda stupid, but hopefully they'll fix it in an update soon.

  • When I try to drag and drop to combine events in iPhoto, the drag accelerates out of control when it reaches the top or bottom of the screen. How can I slow it down?

    When I try to drag and drop to combine events in iPhoto, the drag accelerates out of control when it reaches the top or bottom of the screen. How can I slow it down?

    from iphoto  Help
    Album overview
    A photo album in iPhoto is just like one you would create with printed photos: It’s a collection of photos you select from your library and arrange in the order you want.
    You can create photo albums to:
    Focus on a particular subject, such as your favorite nature photos
    Group pictures that you want to send to a friend, post on a webpage, or burn to a CD or DVD
    Gather a decade of anniversary photos
    iPhoto has two kinds of photo albums:
    Standard photo albums: You create these albums (B, shown below) by selecting particular photos. You can add new photos by dragging them to the album (or using the Add To button), and you can remove photos at any time. All adding and removing is done manually; iPhoto doesn’t update standard albums automatically as you import new photos.
    Smart Albums: iPhoto creates these albums for you, based on criteria your specify. iPhoto then updates Smart Albums (A, shown above) for you as your library changes. For example, you could create a Smart Album containing:
    Photos of specific people, such as your family members. As you import new photos, iPhoto uses Faces to detect your family members, and automatically adds new photos of them to the Smart Album (after you’ve confirmed the matches in Faces).
    All the photos of your daughter taken on school field trips in third grade. Use Faces (to name your daughter) and keywords (to mark certain photos or events as “field trips”) to help specify the photos you want iPhoto to place in that Smart Album.
    Only photos taken with a specific camera, or photos matching other Exchangeable Image File (EXIF) information.
    You can make as many albums as you like, and you can include the same photo in several albums without making multiple copies of it.
    After you create an album, such as “Australia Adventures,” it appears in your Source list below Albums.
    In full-screen view, the album appears as a stack of photos below Albums.
    To further organize your library, you can group several albums (along with slideshows and projects) into a folder. For example, you could create a folder containing several years of birthday albums or a collection of albums with photos of your camping trips.
    To create a folder, see “Create a folder in the Source list and move items into it” in “Customize the Source list”.
    Folders appear only in the Source list, not in full-screen view.
    Note: A photo album is different from a photo book, which is a collection of photos you create to get professionally printed and bound. See this topic: Photo book overview.
    Copyright © 2014 Apple Inc. All rights reserved.
    LN

  • I seem to have lost the red, yellow and green dots that are in the upper left hand corner that close  or minimize the page.

    I seem to have lost the red, green, and yellow dots that are in the upper left hand corner that close or minimize the page.  How can I get them back?

    You may have to try a general OS X troubleshooting process to see if the issue goes away by doing this...
    Have you tried: starting the computer in SafeBoot mode, with shift key held down; a login screen should appear after a time, and then the regular desktop. At this point, locate Disk Utility in utilities folder, and run 'repair disk permissions' on the startup volume, usually the name given the hard disk drive as it appears on desktop. After Disk Utility is finished the permissions repair, restart the computer normally.
    ...The iTunes player has free support only through the duration of the hardware product's complementary or AppleCare extended plan coverages, so though you can download a newer version, that is not the same as free support for an issue. However, the iTunes Store or App Store has a different factor for their product.
    http://www.apple.com/support/itunes/
    There is an iTunes area in Apple Support Community discussions for more topics like this; except for when they involve a hardware product where an OS X is involved. If your computer is NOT a powerPC (an 'intel'-mac) the topic would more naturally need to be posted where that hardware and later supported OS X version topics get seen. So that is why one asks 'on what Mac running what version...' instead of writing four paragraphs in a wide angle reply. The details about your iMac and the OS X say more; without them, more questions arise.
    Good luck & happy computing!

  • I have just updated my 4s to IOS7. and now my battery discharge is significantly increase. With my Iphone fully charged, the battery run out within 6 hours without using the phone at all. Would it be possible to get the IOS 6.1.3 back to my 4S?

    I have just updated my 4s to IOS7. and now my battery discharge is significantly increase. With my Iphone fully charged, the battery run out within 6 hours without using the phone at all. Would it be possible to get the IOS 6.1.3 back to my 4S?

    Hi, thanks for the suggestion. I have tried as you suggested, and when opening the "purchased" apps some have the icloud logo next to them, but I only have "OPEN" against "Find My iPhone". When opening it up, it goes through the same routine; needs to be updated before proceeding, and wouldn't update because I don't have IOS8.
    Anything else I could try, or am I doomed!
    All of your help is much appreciated, thanks

  • TS4006 My Apple iPod Touch 4th Generation was stolen if the thief signed out of my iCloud account on the device will it go away on the web map on my computer and keep me from locking it remotely?

    My Apple iPod Touch 4th Generation was stolen if the thief signed out of my iCloud account on the device will it go away on the web map on my computer and keep me from locking it remotely? I was asking my grandmother who works in apple tech support at at&t but she didnt know. so im hoping somebody will come by and say yes to my question because my iPod touch is still appearing in my iCloud.com account.

    Yes. If it was signed out from iCloud, it will disappear from the Devices list in Find my iPhone.

  • After installing Mavericks on my MacBook Pro 2009 (japanese keyboard) the layout doesn't work. I mean if I press the @ button the è symbol comes out. I tried to change the layout in Preferences but doesn't work. Could anyone help me please?

    Hi there
    after installing Mavericks on my macbookpro 2009 (Japanese keyboards) the layout doesn't work anymore. I mean, if I press the "@" button the "è" symbol comes out. I did already change the layout in the Preferences but it didn't work.
    Could anyone help me please?

    Apple has changed the way Kotoeri keyboard layouts work.  You should be able to get normal behavior if you activate the US layout and switch to that just before using Kotoeri.  Here is also an Apple note on the topic with another suggestion:
    http://support.apple.com/kb/TS5284
    Be sure to tell Apple you want this changed back to the way if was in 10.8 and earlier via
    http://www.apple.com/feedback
    If you know Japanese well, you might ask on the Japanese discussions whether someone has found a better fix for this:
    https://discussionsjapan.apple.com

  • When I send an email notification that the form has been sent I want the receiver to get a copy of the actual filled out form not a ling to the data, how can I make this happen?

    When I send an email notification that the form has been sent I want the receiver to get a copy of the actual filled out form not a ling to the data, how can I make this happen?

    Hi,
    you can find documentation for Designer under this website
    http://help.adobe.com/en_US/livecycle/10.0/documentation.html#task=4,5&module=2
    In Designer you can use the JavaScript API of Acrobat.
    So the Devnet for Acrobat is also a good source.
    http://www.adobe.com/devnet/acrobat.html
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf

  • In iphoto, when I click on Print, the preview image it shows me is an enlarged section of my photo. I cropped the photo and checked with no restraints. Once the photo goes to Print, I can't fix it back to the way it is in iphoto.

    In iphoto, when I click on Print, the preview image it shows me is an enlarged section of my photo. (In iphoto I hadI cropped the photo and checked "with no restraints." )
    Once the photo goes to Print, I can't fix it back to the way it is in iphoto.

    It is working now. I no longer get the message about the item not being available in the US and I can access the store.

  • Using Shading Dictionary to perform shading in pdf,before that the shading dictionary call from Pattern Dictionary.In the Pattern Dictionary there is an Matrix based on the matrix value  location the shading operatihow the axial shading is preserve in pdf

    using Shading Dictionary to perform shading in pdf,before that the shading dictionary call from Pattern Dictionary.In the Pattern Dictionary there is an Matrix based on the matrix value  location the shading operation is perform,So i dont know how to calculate value of pattern Dictionary matrix value.
    10 0 obj
    << /Type /Pattern
    /PatternType 2
    /Shading 11 0 R
    /Matrix [1.00 .00 .00 1.00 54.00 53.00]  // the matrix value how to calculate
    >>
    11 0 obj
    <<
    /ColorSpace /DeviceRGB
    /Function 12 0 R
    /ShadingType 2
    /Coords [109.2726 69.00 109.2726 .00]
    /Extend [true true]
    >>
    12 0 obj
    <<
    /FunctionType 0
    /Domain [.00 1.00]
    /Range [.00 1.00 .00 1.00 .00 1.00]
    /Size [1002]
    /BitsPerSample 8
    /Length 3006
    >>
    stream
    here is an stream of colors
    endstream
    endobj
    Can anybody help me please.
    Regards, Sasi kumar sekar.

    Hi, Sasi -
    The Matrix maps coordinates in your shading dictionary into User Space. That is, the Matrix entry in the Pattern dictionary specifies a coordinate transformation that will be applied to coordinates specified in the shading dictionary.
    To take your example, you have an axial shading extending from (rounding off) 109,69 to 109,0.  Your Pattern dictionary specifies the Matrix
    [ 1  0  0  1  54  53 ]
    This transformation matrix corresponds to a scale of 1,1 (that is, no change in scale) and a translation of 54,53. Thus, the actual endpoints for the axial shading will be the User Space positions 163,122 and 163,53 (assuming I’ve added correctly).
    As to what values to use for your Matrix, it depends on how you’ve set up your Shading dictionary. If the coordinates you’ve specified are actually where you want the gradient to go, then just use an identity matrix
    [ 1  0  0  1  0  0 ]
    By the way, are you sure that the Pattern dictionary includes a Matrix entry? I seem to remember (it's been a while since I've looked at Patterns) that the matrix is supplied as an argument to the makepattern operator:
    <<patternDict>> [ 1 0 0 1 0 0 ] makepattern
    Hope that helps.
    - John Deubert
      Acumen Training
      PostScript and PDF
      Training & Consulting

  • Dot matrix printers Capable of printing TABLE lines In Smartforms

    Hey guys,
       we are using EPSON LX-300+ (dot matrix pritner)
    but the problem is,
    it is not able to print table lines present in a SMARTFORM..
    it can print the same table lines presnet in SCRIPT ...
    so i want to know,
      all the dot matrix printers in the market...
    that can print table lines in SMARTFORMS...
    (pls suggest the DM printers u are using and dont have this problem..i.e unable to print table lines in SMARTFORMS)
    thank you...

    Hi Sreesudha,
    I have used three different line types for the main window.
    LTYPE1(Header) : For printing the column heading along with the title for consignor address.
    LTYPE2(Main Area) : For printing the line items detail. For the first line, I have to print Material Description and chapter Id and if the same    material exists for the second line item, then it should not be printed, so I have written condition for not printing it.
    LTYPE3(Footer) : For printing the footer with the net and gross weight details.
    And for paragraph format, I have used the custom Para. Format only.
    Suggest me ASAP.
    Rgds,
    JK

  • When I try to burn a playlist onto a CD, the songs come out in a different order on the CD. What am I doing wrong?

    When I burn a playlist to a CD, the songs come out in the wrong order. They appear to be in the order I want in the playlist. Any ideas what's wrong? I am using a dell laptop with Itunes for windons.

    WOW. That's a new one...
    Check out: https://discussions.apple.com/message/3972820#3972820
    Something to do with having the shuffle button enabled.
    Otherwise...
    Are you sure you didn't accidentally hit the "Name" header before burning?
    Does it actually PLAY in alpha order or are you looking at the disk in Windows explorer...?
    If none of the above is true, the most likely possibiltiy is that the playlist is corrupt. (I've been using iTunes since V1- have over a hundred playlists and that's never happened) Anyway, there's no way to "fix" a CD once it's been burnt.
    So... create a NEW playlist (you might even try with a couple different songs first just as a test) if that works, just copy desired songs to  a new Playlist, and burn again.
    If THAT doesn't work, it's possible your iTunes files (Library.itl / .xml) are corrupt. There's an article in the knowlegebase called something like "Recreate?  or rebuild? your iTunes Library" that explains exactly where these files dwell, and how to reconstruct it.

  • I have been watching a rental movie and the audio cut out half way through, tried restoring the apple TV now I've lost the rental.

    I have just been watching (The  Adjustment Bureau) a rental movie and about half way through the audio cut out, I tried rerunning the chapter but still the same problem so I tried the restoring function and now I have lost the 48 hrs viewing of the movie. So how do I get the movie back without paying for it again and is this problem likely to reoccoure and if so how do I rest without loosing the movie?

    Hi David.
    This must be a glitch in the movie file on the iTunes server because my husband and I just reached the same point in he film (The Adjustment Bureau) and no audio! Totally cuts out and doesn't come back in. We tried the same - turned off, signed out, and also couldn't see the rental in the menu... Sign out, sign back in and click 'Check for rentals' in the 'General' menu just under where you signed in.
    It may come up with a negative 'no more rentals can be found' or similar but go back to the main screen and check anyway. It should be there.

  • When I try to post a comment the page greys out but nothing else happens, and the comment is never posted.

    When I try to post a comment the page greys out. Clicking again restores the page, but the comment is unposted. Repeated clicking "Post comment" just repeats the greying out and restoring. I'm using 14.0.1 on win7 (64).

    Is this on one particular site? When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here (if you usually stay logged in to the site, this probably will log you out)
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    Then try reloading the page.
    If that doesn't help, perhaps something in Firefox 14 or one of your add-ons is not compatible with the site. Do you want to post the URL?

Maybe you are looking for