Printing in calendar format using forms

I need to print to a file in a calendar format, with
monthly view using Forms 9i. Oracle Portal and APEX
is not an option.
There is a table which consists data for several months,
and I need to use oracle forms as parameter form
to pass the date range to print the calendar.
The requirement is one month per page. I am thinking
there should be a way to generate an HTML output.
As always, looking forward to some great ideas.
thanks

OK. Here goes:
Query 1:
/*Select the months between the from and to dates */
SELECT months, to_date('01-'||months,'DD-MON-YYYY') order_date
FROM ( SELECT distinct TO_CHAR(days,'MON-YYYY') months
FROM (SELECT :p_fr_date + (ROWNUM-1) days
FROM M191F
WHERE ROWNUM <= to_number(:p_to_date - :p_fr_date) +1)
ORDER BY to_date('01-'||months,'DD-MON-YYYY')
M191F is a dummy table with 1000 rows in it. It has 1 column M191COPY NUMBER(10). We use it just as a driver if things want to bring out a given number of records. We are using a parameter form in the report to get p_to_date and p_fr_date but that would be easy to receive from a Form.
In the group I see there is a formula column producing the page title, it returns
return to_char(:order_date,'fmMonth YYYY');
Query 2
Now you need to take some headache pills:
SELECT
TO_CHAR((TO_DATE('01-'||:months,'DD-MON-YYYY') -
DECODE(TO_CHAR(TO_DATE('01-'||:months,'DD-MON-YYYY'),'Dy'),
TO_CHAR(TO_DATE('24-FEB-2003','DD-MON-YYYY'),'Dy'), 0,
TO_CHAR(TO_DATE('25-FEB-2003','DD-MON-YYYY'),'Dy'), 1,
TO_CHAR(TO_DATE('26-FEB-2003','DD-MON-YYYY'),'Dy'), 2,
TO_CHAR(TO_DATE('27-FEB-2003','DD-MON-YYYY'),'Dy'), 3,
TO_CHAR(TO_DATE('28-FEB-2003','DD-MON-YYYY'),'Dy'), 4,
TO_CHAR(TO_DATE('01-MAR-2003','DD-MON-YYYY'),'Dy'), 5,
TO_CHAR(TO_DATE('02-MAR-2003','DD-MON-YYYY'),'Dy'), 6)) + (ROWNUM-1) ,'FMDy dd Mon YYYY') datee,
'' day, '' tasks, to_date('') the_date
FROM M191F
WHERE ROWNUM <= DECODE(TO_CHAR(TO_DATE('01-'||:months,'DD-MON-YYYY'),'Dy'),
TO_CHAR(TO_DATE('24-FEB-2003','DD-MON-YYYY'),'Dy'), 0,
TO_CHAR(TO_DATE('25-FEB-2003','DD-MON-YYYY'),'Dy'), 1,
TO_CHAR(TO_DATE('26-FEB-2003','DD-MON-YYYY'),'Dy'), 2,
TO_CHAR(TO_DATE('27-FEB-2003','DD-MON-YYYY'),'Dy'), 3,
TO_CHAR(TO_DATE('28-FEB-2003','DD-MON-YYYY'),'Dy'), 4,
TO_CHAR(TO_DATE('01-MAR-2003','DD-MON-YYYY'),'Dy'), 5,
TO_CHAR(TO_DATE('02-MAR-2003','DD-MON-YYYY'),'Dy'), 6)
UNION ALL
SELECT TO_CHAR(TO_DATE(ROWNUM||'-'||:months,'DD-MON-YYYY'),'FMDy dd Mon YYYY') datee,
TO_CHAR(TO_DATE(ROWNUM||'-'||:months,'DD-MON-YYYY'),'dd') day,
ans_y_util.daily_tasks (:p_owner, TO_DATE(ROWNUM||'-'||:months,'DD-MON-YYYY')) tasks,
TO_DATE(ROWNUM||'-'||:months,'DD-MON-YYYY') the_date
FROM M191F
WHERE ROWNUM <= TO_CHAR(LAST_DAY(TO_DATE('01-'||:months,'DD-MON-YYYY')),'DD')
The union bit is the call to our function in ans_y_util which I think will return some text to say what's happening on the date provided, for the user. So it calls that once for each date in the range, even if there's nothing happening on that day.
It looks like the trick is in working out which day of the week you're on about. Putting the hard coded date of reference in Feb 2003 gives it a starting point.
Then all this is neatly laid out in the Layout Editor... ;-) I guess it's something to do with an Across/Down layout, measured to fit the 7 cells in it across before going down.
I hope this is relevant. But you did ask!

Similar Messages

  • Why can't i print my calendar i use in iCLOUD from a PC

    Why can't i print my calendar i use in iCLOUD from a PC

    You're welcome, and I agree that it needs to be fixed.
    www.apple.com/feedback is where you can give your feedback to Apple as well as here.

  • Printing Chinese Date format using Oracle Reports

    Hi ,
    I need to print the date as for e.g, 2006 4 12 (Year Month and Day) with a chinese character after each of the three components, representing the year, Month and Day.
    When running the report with the format mask as RRRR Mon DD, I get the chinese character for the Month component and not for the year and day. I tried with different format masks available and also tried with somehting which is not in list as well. But, I couldn't get the intended format.
    Is there anyone who has done this before? If so, pl. let me know the way to get this done.
    regards,
    tilak

    Hi Olga,
    If  the Date in the database is date (not datetime) means you cannot use a DD-MON-RR HH:MI:SS in your reports.
    If you want to show date with time means, change the properties in Oracle Forms of that date field and assign datetime as datatype.
    So that the value inserted to the field will become datetime. and automatically if you use this column in your report you will get date along with time.
    Hope this clears...
    Regards,
    Soofi

  • Printing A3 page format using ABAP List from SAP is a problem...

    Hi Experts,
    I am trying to print a standard output (ABAP List) A3 page size from SAP.
    I used SWIN, SAPWIN, I9HP4 device types, but none of them worked.
    I created page format type ZYEVMIYE 290MM – 420MM and the page format L120, W200. In order to make it usable with page size is A3. Unfortunately this did not work either.
    The behaviour of the problem is when I tried to print with the device types that mentioned above then printer indicator comes to an error. And nothing comes out from the printer.
    Just to be on the safe side I made a test from windows self test, it resulted success with A3 page size format. So from this point of the view I got a thought that somehow SAP (selected device types) is not able to send correct signal to Printer for page size A3, because on the printer information screen displays ‘load Tray2 for A4’ this is showing that SAP sends Printer a signal for page format A4.
    I need help on how to make SAP (selected device type) send a correct signal to Printer in order to printout A3 page size format.
    Quick reply will much be appreciated.

    Hi,
    At last i got a Solution to my Question.
    The Problem is that in my SAP-Code they have been translated the PDF into 255 string.But i am retreiving using 132 string.So, i resolved in this way.
    <b>For Each dr As DataRow In ds.Tables(0).Rows
    Dim dataline As String = dr(0)
    If dataline.Length < 255 Then
    dataline = dataline.PadRight(255, " ")
    End If
    sb.Append(dataline)
    Next.</b>
    May be this Thread is useful to Others.
    Regards,
    Rajender.

  • Need help to print in PDF format using Adobe Reader with FireFox and a FileOpen plug-in. Can't get anything to work.

    I am trying to print clothing patterns on my printer and they must be in PDF format. I was told I needed Adobe Reader, a FileOpen plug-in, and finally Firefox Plug-in. I downloaded all of this and I still cannot open anything in PDF format. Thank you Bonita Rainey

    call the same smartform(Function generated from smartform) in your bsp application, get the otf outof it, convert that to pdf and show it. follow your previous thread and check the blog mentioned there.

  • How to print form into pdf format using smart forms in abap

    please let me know how to print form into pdf format using smart forms in abap.
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 25, 2011 2:04 PM

    Hi ,
    refer this link
    <removed by moderator>
    Regards,
    Dhina..
    Moderator message: please do not reply to questions that violate forum rules.
    Edited by: Thomas Zloch on Mar 25, 2011 2:04 PM

  • Printing report in calendar format

    I need to print a report in a calendar format with
    monthly view in Reports 9i. I am aware of Portal and APEX
    but its not an option.
    There is a table which consists data for several months,
    and I am trying to use oracle forms as parameter form
    to pass the date range to print the calendar.
    The requirement is one month per page.
    As always, looking forward to great ideas.
    thanks

    Hi All,
    I can't reduce the line size of my report (Client Requirement ) and if i try someother format then it will cut the data from the report.
    Is there no otherway I can get the same in portrait format. What is the maximum size of the line in a report if i want to get it in Portrait format.
    Regards,
    Akhil.

  • Issue with character formats using duplex printing in smartform

    Hi all,
    I am getting a problem with character formats using duplex printing in smartform. I am using a text module with a bold character to display text in a window. The problem is that on the first back page,the text is being printed normally (without bold), but on the next pages, the back pages are being printed with the bold character format.
    Can anyone know where is the problem..please.
    Points to be rewarded..
    Thanks.
    Regards,
    Zaheed.

    Hi Zaheed,
    Normally this should not happen.. and also there is no internal formatting done by SAP.. it will show based on what fomatting option we have specified..
    If you are saying it is happening in ur case then
         1. Recheck whether whether you have same text module getting printed on the
             two page. If they are different then then individual check formatting option for
             each..
          2. If above point does'nt work for you ..then instead of bold char use normal
              format for text element and see if it is printing same on both page..
    Try this out and let us know your findings...
    Enjoy SAP.
    Pankaj Singh

  • I'm using windows 7 and working in office 2010. I have installed iCloud and I can't print my calendar from outlook all it will print is a blank calendar no appointments or birthdays . can anyone help please.

    I’m using windows 7 and working in office 2010. I have installed iCloud and I can’t print my calendar from outlook all it will print is a blank calendar no appointments or birthdays . can anyone help please.
    Geoff

    I had a similiar problem, with my multiple devices.  I open iTunes and when all devices were connected I went to the info section on each device.  Under info I checked the sync calandars. Under that I click all calanders. I then did the apply in low right. I then did the sync function and it fixed it for me.  You have to do this for each device.
    I also checked the device (ipad,Iphone) themselves and change the calander selection to NO Catagory.  Hope this helps.

  • Inventory Management- Printing Physical Inventory Document using Smart Form

    Scenario: Inventory Management- Printing Physical Inventory Document using Smart Forms
    I could found out that there is no standard smart form linked to Transaction MI21(Program-RM07IDRU). There is a sapscript ((INVNET) assigned to this transaction, but my requirement is to assign customized smartform to this transaction.If it is not possible to assign smart form to pgm then is it possible to through enhancement.If yes then let me know the enhancement as there are lot of enhancement in the pgm RM07IDRU.
    If you have any solution then kindly mentioned it.
    Looking forward for kind help.
    Regards
    Amit

    Check out with your SD guy if the items in billing doc have correct pricing conditions triggered.
    From the description it looks like some customizing issue.
    Otherwise revert back with the logic how are you trying to get the net value of item.

  • I'm using the latest version of firefox, but unable to print any downloads. I've tried using the print icon on the downloaded form and also control P

    I've tried using the print icon on the downloaded form and also control P, but only get a blank page. I've even changed printers, but it didn't help. My print menu looks the same and I do not have trouble printing anything else, only with downloaded files.

    If you cannot see any content on pages you printed or in print preview, the cause might be margins which are set too high.
    #In order to check the margins, we need to go to ''File'' > ''Page Setup''.
    #Once this is done, switch to the ''Margins & Header/Footer'' tab.
    #Check what's set there under ''Margins''.
    The following are the default values for ''Margins'':
    '''Right''': 12.7
    '''Top''': 12.7
    '''Left''': 12.7
    '''Bottom''': 12.7
    Check these values accordingly and change them if necessary.

  • I am wanting to print my iCal calendar, as use it for bookings but not include entries calendar from other people who I've synced with.

    I am wanting to print my iCal calendar, as use it for bookings but not include entries calendar from other people who I've synced with.

    GACU,
    OK, now I think I understand your problem.
    If it is your calendar that is being shared with other users who have been granted editing priviliges, you will not be able to exclude those events from printing.

  • How do you print your calendar using AirPrint?

    How do you print your calendar on iPad using Airpirint?

    You can get the Calprint App. See here:
    CalPrint by EuroSmartz Ltd: https://appsto.re/us/-pD3x.i

  • Print Charts/Graphs on Smart Forms

    Hi Seniors,
    Here is a requirement on Smart Forms:
    I need to print Charts on Smart Forms. I have been through many answers on SDN but unfortunately, there are not many appropriate solutions. I executed some standard reports and got Charts and graphs as output but am not able to use it to display the same on Smart Forms. I have even  tried using classes for charts / graphs, business graphics(may be there would have been some sequential procedure for that).
    In the Smart Form, I have tried Form Attributes>Output Options>Output Format--> XSF output
    with output mode: 'Spool' and Output Device: 'XSFOUTDEV' from help.sap(I couldn't get what output device that was and was unable to execute).
    I have tried executing transaction GRAL(demo reports for SAP graphics) too.
    I found a report that would produce graph in Excel, I executed it, saved the graph from excel in '.bmp' format in SE78 and then printed it on Smart Form. But all I want is to have it done dynamically.
    I saw answers that we can save the graph chart/graph onto the desktop, upload it and then display it on the Smart Forms. But, when i tried it, I saw that it could be saved only in '.dat' format. I have to save it dynamically in a supported format like '.bmp' and print it on the Smart Forms(the graph would change depending upon the input values). Please help me resolve this.
    Thanks in Advance,
    Chaitanya.

    Dear Bouman,
    Thank you for the reply. I can write a report if would helps me to upload images dynamically. I saw your program but, here we cant give the name of the chart that comes as output. I tried to save the chart but it comes in '.dat' format but not in '.bmp' format. We may be having some classes or function modules that we need to call in a particular sequence. What other options do we have. Please help me resolve this.
    Regards,
    Chaitanya.C.N

  • Can I export Numbers data into a calendar format?

    I have project names and their deadlines in a table and would like to export/view them in a calendar format so I can see, at a glance, what is due when...does anyone know if this is possible?

    Thanks.
    Can I import Excel data into a PDF form using Acrobat XI on Mac?
    created by GKaiseril <https://forums.adobe.com/people/GKaiseril>  in PDF
    Forms - View the full discussion
    <https://forums.adobe.com/message/7053927#7053927>
    User Interface.
    If the reply above answers your question, please take a moment to mark this
    answer as correct by visiting:
    https://forums.adobe.com/message/7053927#7053927 and clicking ŒCorrect¹
    below the answer Replies to this message go to everyone subscribed to this
    thread, not directly to the person who posted the message. To post a reply,
    either reply to this email or visit the message page:
    Please note that the Adobe
    Forums do not accept email attachments. If you want to embed an image in
    your message please visit the thread in the forum and click the camera icon:
    https://forums.adobe.com/message/7053927#7053927 To unsubscribe from this
    thread, please visit the message page at
    , click "Following" at the
    top right, & "Stop Following" Start a new discussion in PDF Forms by email
    <mailto:[email protected]com
    or at Adobe Community
    <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=
    14&container=4698>  For more information about maintaining your forum email
    notifications please go to https://forums.adobe.com/thread/1516624.

Maybe you are looking for

  • Issue with "unknown user type 6" on Coherence 3.5.2

    Having an issue with a cluster which is running using an internally developed cluster starter tool. This tool, and the associated cluster, all use POF, and upon attempting to connect a non-storing member to the cluster from java, the following except

  • Why doesn't my ipod connect to itunes?

    I connect my ipod to my laptop it connects cus it makes the sound and opens up for the pictures but it wont open in itunes??? This started happening after the new update. I already uninstalled and installed again and still doesnt want to work.

  • Haroon Mahmood – how to create electronic signature in pdf files

    Hi, I am Haroon Mahmood. I am new to this forum. I want to know, how to create and add the electronic signature in Adobe Acrobat. I want to manage my signature documents for online work purpose.So that, if I need to sign a form, I can easily add my e

  • Realm in The  Directory Application

    Hey Guys! I have my server set up with Open Directory and I went to the Directory App on my Mac Mini (Server) and tried to add a new location but when I tried to it said "Directory requires that you type your Kerberos password" it has Name, Realm, an

  • File Manager Pro app --- WIFI won't connect to PC

    The File Manager Pro (free) app won't let me connect to my home network URL.  I am trying to download files from PC to iPad.