How realize print of the createded form? URGENT!!!!!

Hi all
I created user form in sbo 2004. and a have pattern of printed form. how realize printing use Menu Uid 519? (please code vb)
thanks
Message was edited by: Artem Artamonov
Message was edited by: Artem Artamonov

Hi Artem,
Here is piece of my code for printing through word
I hope this helps.
Imports Microsoft.Office.Interop
Dim wordApp As Word.Application = New Word.Application
wordApp.Visible = False
Dim document As Word.Document =                      wordApp.Documents.Add(GetAddOnDirectory() + "req4quot.dot", False, Word.WdNewDocumentType.wdNewBlankDocument, True)
Dim zp As SAPbobsCOM.IBusinessPartners = main.sboCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
zp.GetByKey(Item("supplier").Specific.string)
Dim supplier As String = zp.CardName + vbCrLf + zp.ContactPerson + vbCrLf + zp.Address + vbCrLf + zp.ZipCode + " " + zp.City + vbCrLf + zp.Country
document.Application.Selection.GoTo(what:=Microsoft.Office.Interop.Word.WdGoToItem.wdGoToBookmark, Name:="supplier")
document.Application.Selection.InsertAfter(supplier)
document.Application.Selection.GoTo(what:=Microsoft.Office.Interop.Word.WdGoToItem.wdGoToBookmark, Name:="itemdesc")
document.Application.Selection.InsertAfter(Item("itemdesc").Specific.string)
document.Application.Selection.GoTo(what:=Microsoft.Office.Interop.Word.WdGoToItem.wdGoToBookmark, Name:="quantity")
document.Application.Selection.InsertAfter(Format(Val(Item("quantity").Specific.string), "#,###,##0"))
Dim filename As String = GetAddOnDirectory() + "req 4 quot dd" + Format(Now, "yyyy-mm-dd hh:mm:ss") + ".doc"
Console.WriteLine(filename)
document.SaveAs(GetAddOnDirectory() + "req 4 quot - " + Format(Now, "yyyymmddhhmmss") + ".doc")
document.PrintOut()
document.Close(Word.WdSaveOptions.wdDoNotSaveChanges)
wordApp.Quit()
Regards
Ad

Similar Messages

  • I need to print out the response forms.  How do I do it?

    I need to print out the response forms.  How do I do it?

    They are saved as PDF files, so you just need to install Adobe Reader, which you can download for free: http://get.adobe.com/reader/

  • How can print a report from form 6i,  when I press a button?

    hi Friends,
    How can print a report from form 6i, when I press a button?
    When i press a button from Form 6i, the report should print through printer.
    I have done it by using report parameter DESTYPE Printer but problem is that when I press a button printer dialogue box appear and then I give command Print to printer, I don’t want to show Printer dialogue box.
    I want when I press a button form Forms 6i , printer will print my report directly.
    Please send me the solution of this problem.
    Best regards,
    Shahzad

    Hi
    If You are using Client server application then to passing to Add all Print Parameter in the Host Command.
    Means Print command in unix to Host(lp.............) and Other Parameter to file name of the report to print.
    If You not Use Client Server Application the Also Passing a Host Command in Button-Pressed Event and Run.

  • How to print bullet in smart form

    Hi Experts,
    I have a requirement in smart form  where different points of texts should come under a bullet.
    Can you please tell  me how to print bullet in smart form.
    Note : I have to use Standard text   
    Thanks in advance
    Bikas

    hi
    good
    We can create bullets in smartforms.
    For this change the editor to text editor and then
    goto insert->characters->SAP Symbols and select the
    symbol you want.
    This may help your requirement.
    You cannot see the bullets in print preview, it'll
    appear only on a hard copy.
    reward point if helpful.
    thanks
    mrutyun^

  • How to password protect the adobe form ?

    Hello,
    I am very new to this livecycle designer.
    Can anyone please tell me how to password protect the adobe form(it can be print or interactive form) ?
    can it be done through scripting ?
    Regards,
    Menaka.H.B

    How to create Password to lock of Acrobat Pro and Adobe Livecycle Designer
    Hi everyone!!!
    I am using Adobe Livecycle Designer ES software, and i created the password on this Form of this software, but it can not lock Acrobat Pro. How to create Password to lock both of Acrobat Pro and Adobe Livecycle Designer? I would like another people just open Acrobat Reader, not other 2 softwares.

  • How to find out the  particular   form available language?

    hi ,
    how to find out the  particular   form available language?
    pls could u clirify the dought.
    regards
    eswar

    I guess you wrongly closed the thread without any answer.
    utilities --> version, it will give all the list of languages of SAPScript.
    Or goto SE71,
    Press F4, in place of form name and goto unclassified forms, you will see all form names with available languages.
    Regards,
    Sairam

  • !0.5.8 How do I copy the 'system' form one internal Hard drive to an other (BY CD Packed up) Thank you

    !0.5.8 How do I copy the 'system' form one internal Hard drive to an other (BY CD Packed up)  I have tried but it will no show 'live' system folder - do and how can I bless it ? Thank you

    Carbon Copy Cloner will allow you to de-select directory trees, so you could use it to copy over everything EXCEPT the /Users directory tree.
    Mac OS X is NOT just the System Folder.  If you do not copy over the rest of Mac OS X, it will not boot.  So better to exclude Users and take everything else, then it is to try and pick and choose.
    The other approach is to install a New Mac OS X, and then copy over the stuff you want from the home folder(s) and reinstall any apps you want.

  • How can i find the installed forms version in 6i...?

    Dear all,
    How can i find the installed forms version in 6i, the situation is we have given a solution which will work in only forms6i latest version, before implementing the same we need to check whether the forms latest version has been installed or not
    Is there any way to find out without opening the forms builder..?
    Even if we un install the forms from a machine, the forms60_path variable will remain in regedit, so we cannot go based on that and aslo i dont know whether regedit will have the version details and all.
    It would be greatly appreciated if any one can give a solution.
    Thanks in Advance.
    Thangaraj.

    you query the registry, the registry has the version number saved, but I cannot remember exactly where and I don't have 6i Installed on my machine.
    You just open the Forms Builder and click on Help/About.
    But Jan's method is the best.

  • How an i compare the two forms ( script) that are in two systems ?

    Hi,
    How can I compare the two forms(sap script)  which are in different versions  or systems? One form is in D22 and other form is P22 .
    My requirement is to change the form when they are different.
    Thanks,
    Suresh.

    Hi,
    You can download the form info for each script and compare these two files.
    In the SAPscript choose Utilities -> Form info and save this as a file.  As they are structured in the same format you can then look for differences in these files rather than having to look through the form window by window.
    Regards,
    Nick

  • How can i find the adobe form translations

    Hi Friends,
    how can i find the adobe form translations?
    i mean i want to know in how many languages my adobe form has been translated?
    is their any report or is their any technique to find the translations........................
    Thanks,
    Harish.K

    Hello Harish,
    To find the translation of Adobe form is nothing but to find the labels or texts used in this adobe form in various languages. This will give you an idea on how many languages your adobe form has been translated.
    So to find the translations in different languages, you have to go to Context node of the Adobe form. Then go through the text nodes which are used as labels. These will be normally stored as Standard texts in SO10.
    For example. Take the text name of any one text node.
    1) Go to SE38.
    2) Type program RSTXTRAN.
    3) Let the Text key - object be TEXT.
    4) Then enter this text name in the field Text key - name. I have put the sample standard text ZTEST_ADOBE as shown below.
    5) Let the Text key - ID be ST.
    6) In Text key - language, Enter *  (i.e enter the Asterisk) because you want to find out all the languages.
    The screen parameters will be as shown below.
    7) Now Execute this report.
    8) It will show all the various languages in which this particular standard text is used which is nothing but the Adobe form is being used in these many languages. For example, the standard text ZTEST_ADOBE is used in 3 languages, English, German and Spanish as shown below. It will look as shown below.
    Note: This will give you the more or less the overall idea of the form that has been used in these many languages. But also make sure the standard text with particular language is also linked with the Transport Request. Because there are chances that the text was created in a particular language but was never used.

  • Can't figure out how to print on the right side of a greeting card using a 5X7 when folded

    I have a HP Officejet Pro 8500A.   I am trying to print a greeting card, but cannot figure out how to print on the right side of the paper so that it's on the correct side when folded.    The paper is 5X7 when folded, 10X7 laid flat.

    shgilljx,
    Welcome to the forums. I will try to explain this in simple terms, and you'll have to play with it. We'll use plain paper, cut to 10x7. You'll need a marker, 4-5 sheets of paper.  
    Lay paper flat, number top 1, bottom 2. Flip paper over right to left. number top 3, and bottom 4.Draw a line where the fold would be on each page.1) Put paper with number 3 side up in printer.
    To create both templates using MW Office, do this. The requires 2 documents. One is graphic, one is text.
    Text template: The text will be printed on number 2.  That means your wording must be within the bottom half of the page.
    Graphic template: The image must be rotated 180 degrees.The image must be within the top half of the page.
    Print the text template. Insert side #3 into the printer. The text should print on side #2.
    Print the graphic template: Insert side #1 into the printer. The graphic should print on side #3.
    When folded, all should be correct, if I did it right.
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • How to print out the position of 2 dimension arrays?

    there are 2 dimension arrays, how can print out the position of value than 4?
    for example
    0 2 3 2 2 2
    0 1 1 2 5 3
    1 2 3 3 2 1
    print out:
    The pos is ( 5,2).

    Hello
    If I understand your question correctly, you are trying to print out the indexes where the value in your matrix is greater than 4
    If this is the case, then what you need to use is nested for loops e.g.
    for (int i = 0; i< array[0].length; i++)
    for (int j = 0; j< array[].length; j++)
    int value = array[i][j];
    if (value > 4)
    System.out.println("The pos is (" + i + "," + j + ")" );
    Regarding the syntax I have used to get the size of the array, I am not sure if this is correct, but you should have an idea of what I am doing.
    Sajid

  • I thought I had  Adobe stuff.  I am not computer saavy at all, so I need to speak to someone who can guide me through this situation.  I thought I had an Adobe PDF File, but I guess not.  When I went to print taxes, the blank forms printed, but no the tax

    I thought I had Adobe stuff.  I am not computer savvy at all, so I need to speak to someone who can guide me through this situation.  I thought I had an Adobe PDF File, but I guess not.  When I went to print taxes, the blank forms printed, but no tax information I typed in. Please have someone call me.  My number is (909) 864-1150.  Thank you.

    Hello Bill,
    You can seek help from Adobe customer care for the same.
    Contact Customer Care
    Regards,
    Anubha

  • How to print a message in forms in oracle apps

    Hi all
    i am using oracle apps r12
    In when button trigger how to print a message when the button is pressed.
    I tried message('HELLO'); this works in oracle forms but in oracle apps its different and i searched so for and used like this
    fnd_message.set_name( 'FND', 'FND_GENERIC_MESSAGE' ) ; but it doesnt works
    Regards
    Srikkanth

    Hi
    Thanks for your kind response.
    Can you please give me the steps to call a form from another form in oracle apps i am using apps r12.
    I have created a custom form and attached in the special menu and in that form i have two button are there. When the use click the one button another form(custom form) need to called. Can you please provide me the steps.
    Whether it is different from oracle form builder like CALL_FORM('FORM_NAME', ACTIVATE) like this.
    Regards
    Srikkanth

  • How to print barcodes in Adobe forms

    Hi All,
    I am new to Adobe forms, Please help me how to print barcodes in ABAP using Adobe forms.
    Thanks in advance.
    Regards,
    Satya.
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Aug 26, 2011 4:17 PM

    Hi Vanessa,
    maybe this blog helps for the tables:
    [Adobe Forms Using: Nested Table, Text Module & providing the functionality of Page Total & Grand Total|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3414900%29ID0583594050DB11063248235171113529End?blog=/pub/wlg/11236]
    and for the barcodes I found this:
    [Introduction to barcodes in SAP Interactive Forms by Adobe|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3414900%29ID0583594050DB11063248235171113529End?blog=/pub/wlg/13061]
    I hope this provides some help for you.
    If you are not able to fulfill your task, it is a good idea to check the blogs, wikis and download areas here in SAP Community Network - usually the quality is some quantum leaps better than current  ABAP, General.
    Regards,
    Clemens

Maybe you are looking for

  • I started using Firefox4Betas cant read the tect when i print it out

    I have started using Firefox 4 Betas and i cant read the on the web sites when i print it out.

  • Partial Reconciliation on Payment on Account

    I am working on SAP Business One 2007 A Patch Level 38: I understand the usefulness of Partial Reconciliation but am having the following problems when it is used in conjunction with a "Payment on Account".  Here is the scenario. I have a Customer wh

  • URGENT !! PeopleSoft ePerformance Query

    1.Can we add more than one appraiser ( manager evaluation ) for a single document in peoplesoft 9.2 ? or is it only possible through nominate participant option. 2. We have a requirement that in case the approver of an ePerformance document is denies

  • How to have monitor image duplicated with actual print?

    I have a Mac Pro 10.8.5  Using lightroom 5 and elements 12.  Perform most of "developing" in Lightroom and transfer to Elements 12 to fine tune image and save, etc.  I understand to save as  using sRGB or RGB but the images are identical.  Image is a

  • Content aware scaling

    I am trying to use "content aware scaling" in Photoshop CS4.  But every time I try to use it, I get a "program error" messaage.  I select the image, try and resize it, but when I click for content aware scaling to work, the error message comes up. (