Setting a global margin for any documents to print

Hello,
On a Mac running OS X, I have a ruby/java script allowing me to open a Microsoft Word document and print it as a PDF (and extra stuffs, but that's not part of the problem). During the conversion from Word to PDF for most of my documents I get a dialog saying 'A footer of section X is outside of the printable area of the page...'. What I would like to do is not to write a script to click 'yes' when a dialog open but to try to set the default margin for printing to 0. In the 'page setup', there is an option to create customized 'paper size', with a giving width, height and margins (that I can set to 0). By default the paper size is selecting A4, but I would like to find a way to set this paper size as a default to my customized paper size for any document opened on Microsoft Word or printed as PDF!  If I select manually the customized paper size after I open the document on Word, I can print it without having the dialog.
So my question is to know if there is a way to set a global margin for printing to 0 (let me know if I need to use Acrobat Pro, Distiller etc.), whatever the way is.
Thank you very much!
Vincent

Alan,
There is nothing specific with the SDK that you have to print a marketing document such as a Sales Order, PO, etc.  What you may want to look at in the 2005A SDK is the "PrintEvent" object.  This event lets you catch a print event in the SAP Business One application, get the relevant data that is sent to the printer and then edit it using a third-party editing tool such as Crystal Reports. The PrintEvent event provides an exit point that allows you to integrate third-party tools for reporting and document editing.
You can look at the sample code for the PrintEvent here ...
..\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\20.PrintEvent
HTH,
Eddy

Similar Messages

  • PowerShell - to search recycle bin - for any document with title containing "disaster" in it?

    Hi there,
    I am looking for PowerShell - to search recycle bin - for any document with title containing "disaster" in it? 
    E.g. it should search for any documents with title "SharePoint Disaster Recover.doc" or whatever title contains this word?
    Thank you so much.

    This should do it:
    Get-SPSite http://yourServer/sites/yourSite |
    Select -ExpandProperty RecycleBin |
    Where { $_.Title -Like "*disaster*" } |
    Select DirName, Title
    or for all Site Collections in the farm:
    Get-SPSite -Limit All |
    Select -ExpandProperty RecycleBin |
    Where { $_.Title -Like "*disaster*" } |
    Select DirName, Title
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • How does one ensure an automatic save function every 5 mins for any document you are working on. Yesterday I erased a doc I was on and had to rework from the start.

    How does one ensure an automatic save function every 5 mins for any document you are working on. Yesterday I erased a doc I was on and had to rework from the start.

    Well I understand that auto save is already present and saving your doc every 5 mins. But then why do you think, this did not happen yesterday in the following case?? I wrote one page of a long document and wanted to format it before proceeding. I selected the part to be formatted and instead erased it. I could not find that page again. I had to rewrite the matter.

  • Cancellation of any document , the print need to come as cancell , Eg grn ,

    Dear Sap experts,
    Please advise me that if cancellation of any document , the print need to come as cancell , Eg grn , invoice.
    Thanks
    moiht

    Hi Moiht,
    The cancellation is also a document which is similar to the original document. If you could print the original document, you will also be able to print the cancellation doc. GRN does have the output function in SAP, hence you can configure the cancellation of GRN to print too. A vendor invoice on the other hand doesn't normally have an output function, hence you will not be able to print the cancellation credit memo. Unless you program it yourself.
    BR
    Raf

  • Setting different top margin for first page

    I have been trying to set a 5cm top margin for the first page of a thesis chapter and a 2.5 cm top margin for the rest of the pages to conform to requirements. I have set a section break and gone into Inspector to make first page different but I still get any margin changes on the first page through the whole document. I do what HELP says but it isn't working. Anyone help me out before I go troppo?

    The easiest way to do this, especially if all the text ina particular chapter is in the same section, is to just set the 'before' value in the Layout Inspector. As text flows from one page to the next, it will conform to the global setting. If you insert a Section Break, the new section will start on a new page and the first line will be down the same amount as your initial chapter page. If you insert a layout break it will also be moved down that initial amount.
    If you want to capture this behavior you can capture multiple pages to use as well. Some of the preset templates have multiple pages where the first page has different characteristics than the subsequent pages added when oyur text overflows from the first page.

  • Top Margin Woes: Setting the "Before" Margin for Every Page in a Section

    Hi,
    I've scoured the forums to no avail on this one. I am trying to create a document where the text in Section 1 appears 1 inch from the top of each page and 2 inches from the top of each page in Section 2. Should be pretty straightforward, right? Please tell me it is! I'm using Pages '09 (version 4.0.5).
    Right now, the document margin is set to 1 inch from the Top, so Section 1 is fine. For Section 2, when setting the Before margins after a Layout Break (in the Layout Inspector under the Layout tab), only the first page of that section gets a Before margin of 2 inches. Every page after that in Section 2 is still 1 inch from the top.
    Suggested Workaround Attempted
    I tried the "Move Object to Section Master" workaround, but the menu item "Format > Advanced > Move Object to Section Master" is disabled when performed on an "inline" object, which is what is required to force the text down from the top of each page in Section 2. Turning it into a "floating" object enables the "Move Object to Section Master" menu item, but since it is floating. the text for that section is not pushed down, the rectangle is just displayed in the background of each page in Section 2.
    Any ideas on how to solve my Top margin woes would be much appreciated!

    Hello
    To push a text down in the text body using the clean way which means setting space after, requires that we have already a paragraph which means a chunk of text ended by a paragraph break.
    It's exactly what I do.
    Most of the time, we don't put a paragraph break at the end of a header so it's not a paragraph and so, we can't define the space after value.
    My tip just gives it the status of paragraph allowing me to define space after the clean way. The dirty one was to insert several returns to adjust the height which I carefully rejected.
    It's exactly what we discovered some months ago:
    we can't set space before (above) at top of a page because there is no paragraph before (above) in the page.
    As far as I know, the  "Use Previous Headers and Footers" must always be set correctly. I'm remembering a thread which became huge because the OP can't understand that he had to define these properties correctly to get correct results with his captured pages.
    I wish to add that at this time we don't know exactly what the OP want to achieve.
    Maybe he want to move down the top of the print area and the header.
    You can't do that with your tip.
    With mine, I just insert a paragraph break at the beginning of the header.
    Yvan KOENIG (VALLAURIS, France) vendredi 8 juillet 2011 17:50:30
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to set "Created By" field for KD Documents

    In our system documents that are entered to the Knowledge Directory are not tagged with who it was that submitted them.
    We would like to capture that information but I'm not sure how to enable it (or if its possible).
    I've looked at the Global Property Map and don't see a setting for a document, I looked at the Global Document Map but that seems to specifically relay info between the documents meta data and portal properties (which is not what I'm looking to do).
    Does anyone know how to attach the portal user in some type of "submitted/created by" field to a document?
    Thanks and happy September!

    Hello Keshav.T,
    Thank you for your information.
    Finally, I got an answer from OSS and the following is that.
    The popup is shown when there are more than 10 variants exist.
    If do not want to have this popup, you can modify the include
    LSVARTOP in SE38:
    C_VARILIST TYPE I VALUE '10' - maybe change value to '100'
    or if you want to have the popup but without the name inside:
    change include LSVARE01 and comment the line:
    ename-low = sy-uname. append ename. "old
    ename-low = sy-uname. append ename. "new
    I believe this message might be able to solve my problem.
    Thanks again.
    BR,
    Chris Kim

  • Set indent as default for all documents

    Is there a way to set my own indentations for paragraphs, as a default for any new document I create?
    An indent that starts way over here offends my art director's eye. <g>

    cafox513
    You will need to make a custom template with your own settings.
    The default text style is Body so set that the way you like it in the template.
    If you need help with templates and styles look here:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=2&sid=2abc89bd5c5512 60fd5ce34a4e6ad05b&mforum=iworktipsntrick
    You can set your custom template to open by default in your preferences.
    Peter

  • Request for any document to configure Performance Appraisal

    Hi, expert. i am working on ECC 6.0 for Performance of Appraisal. If any one have any document for this configuring of Appraisal, pl do send to me.
    It is an urgent request.your points are assured. Thanks and regards Punith
    Edited by: Zsolt Markus on Jan 30, 2008 12:13 PM

    for concepts
    https://websmp107.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000079831&
    useful blogs
    /people/community.user/blog/2007/01/18/objective-setting-appraisals-document-datamodel
    /people/sap.user72/blog/2007/02/20/objective-setting-appraisals-the-web-environment
    /people/sap.user72/blog/2007/02/20/objective-setting-appraisals-the-web-environment

  • How do set printing margins for my hp110photo smart printer

    I can't get my printer to print the whole page text. It cuts off most of the right portion of the document.How do I set the margins so it doesn't do this.

    seminolepeddler
    Possible place(s) to look for a fix:
    This might be a function output of the type of document you are printing.
    Try setting the editor to wrap the text at a particular margin size.
    Depending on your document editor and / or your browser , much of what is printed is controlled in Print Preview.  The Print Preview feature is available in most editors and most browsers under File, that is, the left-most editor drop down menu function.  (Chrome lacks a File Menu, find these features in Settings.)
    You may need to switch the print to landscape.
    You can also control the margins, at least to a small degree, in the Page Setup > Margins - Header / Footer tab of Print Preview.  Be Aware:  Expanding the margins may impact the header / footer information that is ordinarily printed on the document along with the text.  You can switch off this information, if desired.
    Dragon Document about Print Preview:
    Change Print Size with Print Preview
    Click the Kudos Thumbs-Up to show you appreciate the help and time from our Experts.
    Although I strive to reflect HP's best practices, I do not work for HP. 
    Click Accept as Solution when the Answer is a good Fix or Workaround!
    Kind Regards,
    Dragon-Fur

  • Set up output condition for billing document.

    Hi, experts,
    I wanna email billing document to our customers, how can I set up this output condition for billing document?
    Thanks for your help.

    You can maintain masterdata for the email outputs for billing application in VV31.
    You can change the same or display in VV32 and VV33 respectively.
    Tcode for maintaining output masterdata
    For sales orders,  VV11, VV12, VV13
    For deliveries     VV21, VV22, VV23
    For invoices       VV31, VV32, VV33
    Reward points please!!!
    Message was edited by:
            Navaneetha Krishnan

  • Setting up Designer Margins for Printing

    Good Afternoon,
    I'm sure this is a dumb question, but I continually find that my form pages are outside of the normal print margins for a standard 8.5in x 11in paper. So far the only solution I have found is to select "Pagearea1" underneath "Master Page" and change the 'Paper Type' to 'Letter'. This seems to set the correct page width/height, but I have a concern about margins, I want to be sure the form always prints correctly regardless of the users printer settings. Is there a way to also set a margin? Also, is there a better way to do this or is the method I described the correct way?

    Ya make sure that whatever paper you're using to print is the same size as that of your MasterPage.
    Also, you'll notice when creating a form from scratch, Designer creates a Content Area for which all objects can't be outside of. For my version of Designer the content area is half an inch smaller than the page area on every side. That creates padding for the purpose of printing and general aesthetics. You can always change the size from the Master Pages view.
    If you want to force the printer to always print inside its margins, you can create a button the user presses to print with the following code in the click event (JavaScript):
    var MyDoc = event.target;
    var pp = MyDoc.getPrintParams();
    var fv = pp.constants.flagValues;
    pp.flags |= (fv.setPageSize);
    pp.pageHandling = pp.constants.handling.shrink;
    MyDoc.print(pp);
    Kyle

  • How to set a global configuration for Value Interaction

    Hi there
    i have this problematic situation about some of my dashboards, cause i need to set the same configuration for all of them in the part of the value interaction,
    some of there have in the "default situation" drill and others have "navigation"
    exist a config for this?
    regrats

    Hello Pavel,
    >> … and then on the login page I created a process …
    A typical APEX login page includes a process called Clear Page(s) Cache, with a sequence of 30. If the process you have create has a higher sequence (>30) it will see a null page values as they have been cleared already.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Printer setting - Device type unsuitable for ADS documents - reg

    Hai  Expert
    I am trying to generate print  preview, From 16, I am getting error  "Device type unsuitable for ADS documents"
    guide me to where have to do corrections
    Regards
    Vincent

    May be you should try the right forum:
    pk

  • Device types are not suitable for ADS documents when printing Form16

    In Form 16 , while printing the Form16 of the employee it occurs an error "Device types are not suitable for ADS documents" in the task bar.
    Regards,
    Ranga

    Can you check
    Note 1116245 - ADS Check List before sending message to SAP
    and see which of the steps are not working for you?
    Markus

Maybe you are looking for

  • Possible Solution to Speaker Sounds or Channels Cutting Out or Miss

    I was playing Oblivion and noticed my 4. Xfi setup sounded odd ... checked in Creative's THX Setup control panel and it was set to 4., but when I checked the right front speaker I got nothing and it sounded like the right front was somehow being mixe

  • Why cant I launch Logic Express 9?

    I have the new MacBookPro running OS X. I just installed Logic Express 9 from the disk and it installed fine. But when i go to launch the program it says "You can't use this version of the application "Logic Express" with this version of OS X. You ha

  • How to document your star-schemas and dashboards?

    Hello practitioners, We are new to OBIEE and started some weeks ago. We are a two-men team. One guy doing all the data design and the other for everything around Answers. So it happens regularly that the other guy has to ask the one guy, about the ex

  • Access shared folder on Mac

    Hi, I have two Queries I want to access shared folder on my mac which is being originated from a Windows Xp desktop (through Wifi). I can  see the folder name under shared files but cannot access it (It says "Connection failed") Can I use Printer thr

  • !please help me to write method in my program!

    I have written this program however � have to add something but I could not do it. I have to use four method for each selection. For chasis type four different type which are hatchback, sedan etc. this should be single selection. Moreover option part