I have an Access database that we use as a document index system. The
documents can be Word, Excel, pdf's etc I have a command button on a form
that opens the document in whatever program is relevant. The code I use
is
Private Sub Cmdstart_Click()
On Error GoTo Err_Handler
Dim strPath As String
If IsNull(DocURLtxt.Value) Then
strmsg = "You must enter the Document URL to use this function
'" & DocURLtxt.Value _
& "'." & vbCrLf & "Please enter the URL for " _
& "this document now."
If MsgBox(strmsg, vbQuestion) = vbOK Then
Exit Sub
End If
End If
strPath = Nz(Me!DocURLtxt, "")
If Len(strPath) > 0 Then
StartFile strPath, WIN_NORMAL
End If
Exit_Handler:
Exit Sub
Err_Handler:
MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number
Resume Exit_Handler
End Sub
However I would like another button that actually sends the document
straight to print without having to open the document in the application.
For example if we have the path to a Word document I want the command button
to send the document to a printer, or at least open a print dialog box
without opening the document in Word first and then printing from there. Is
this possible?
As ever TIA
Tony Williams 9 2300
As I understand it, you will have to open the document before it can be
printed.
However, you don't have to display it on the screen.
HTH
- Turtle
"Tony Williams" <tw@tcp.invalid> wrote in message
news:c0**********@sparta.btinternet.com... I have an Access database that we use as a document index system. The documents can be Word, Excel, pdf's etc I have a command button on a form that opens the document in whatever program is relevant. The code I use is Private Sub Cmdstart_Click() On Error GoTo Err_Handler
Dim strPath As String If IsNull(DocURLtxt.Value) Then strmsg = "You must enter the Document URL to use this function '" & DocURLtxt.Value _ & "'." & vbCrLf & "Please enter the URL for " _ & "this document now." If MsgBox(strmsg, vbQuestion) = vbOK Then Exit Sub End If End If strPath = Nz(Me!DocURLtxt, "") If Len(strPath) > 0 Then StartFile strPath, WIN_NORMAL End If
Exit_Handler: Exit Sub
Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler
End Sub
However I would like another button that actually sends the document straight to print without having to open the document in the application. For example if we have the path to a Word document I want the command
button to send the document to a printer, or at least open a print dialog box without opening the document in Word first and then printing from there.
Is this possible?
As ever TIA Tony Williams
"Tony Williams" <tw@tcp.invalid> wrote in message
news:c0**********@sparta.btinternet.com... I have an Access database that we use as a document index system. The documents can be Word, Excel, pdf's etc I have a command button on a form that opens the document in whatever program is relevant. The code I use is Private Sub Cmdstart_Click() On Error GoTo Err_Handler
Dim strPath As String If IsNull(DocURLtxt.Value) Then strmsg = "You must enter the Document URL to use this function '" & DocURLtxt.Value _ & "'." & vbCrLf & "Please enter the URL for " _ & "this document now." If MsgBox(strmsg, vbQuestion) = vbOK Then Exit Sub End If End If strPath = Nz(Me!DocURLtxt, "") If Len(strPath) > 0 Then StartFile strPath, WIN_NORMAL End If
Exit_Handler: Exit Sub
Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler
End Sub
However I would like another button that actually sends the document straight to print without having to open the document in the application. For example if we have the path to a Word document I want the command
button to send the document to a printer, or at least open a print dialog box without opening the document in Word first and then printing from there.
Is this possible?
As ever TIA Tony Williams
Hi Tony
Yes it's possible, but you could spend a while writing the code. Here are a
few thoughts:
The MS Office documents (Word, Excel, etc) would best be printed out using
automation. For example, you create a hidden instance of word, open the
document and print it out. Because these applications have well-documented
object models, the coding for this is fairly standard and works well where
Office is installed on each PC.
You may need a different approach to non-Office files such as .pdf where I
believe you can pass the name of the file, and a printout command in the
switches used for the .exe file.
The following is a start - and is only intended as a start. Here, each time
you print out, a new instance of Word or Excel is started and then shut
down. If speed were to become an issue, then you could change this to keep
Word running (but would you really want many additional Office applications
open considering you're already using Access?)
Copy the following into a module called modPrintout or whatever:
Public Sub PrintFile(strPath As String)
On Error GoTo Err_Handler
Select Case Right$(strPath, 4)
Case ".doc"
PrintWord strPath
Case ".xls"
PrintExcel strPath
Case Else
MsgBox "File=""" & strPath & """" & vbCrLf & _
"This application cannot automatically" & vbCrLf & _
"print files of this type.", vbExclamation, _
"Unknown File Type"
End Select
Exit_Handler:
Exit Sub
Err_Handler:
MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number
Resume Exit_Handler
End Sub
Private Sub PrintWord(strPath As String)
On Error GoTo Err_Handler
Dim wdApp As Object
Dim wdDoc As Object
Set wdApp = CreateObject("Word.Application")
Set wdDoc = wdApp.Documents.Open(strPath)
wdDoc.PrintOut False
Exit_Handler:
On Error Resume Next
wdDoc.Close
Set wdDoc = Nothing
wdApp.Quit
Set wdApp = Nothing
Exit Sub
Err_Handler:
MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number
Resume Exit_Handler
End Sub
Private Sub PrintExcel(strPath As String)
On Error GoTo Err_Handler
Dim xlApp As Object
Dim xlWbk As Object
Set xlApp = CreateObject("Excel.Application")
Set xlWbk = xlApp.Workbooks.Open(strPath)
xlWbk.PrintOut
Exit_Handler:
On Error Resume Next
xlWbk.Close
Set xlWbk = Nothing
xlApp.Quit
Set xlApp = Nothing
Exit Sub
Err_Handler:
MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number
Resume Exit_Handler
End Sub
Thanks Fletcher I'm going to try that. As most of the files will be from
Office applications it seems the user is quite happy that for others like
pdfs they open Acrobat and then print.
Again as ever a BIG thank you and I'll come back if there are any problems
if I may.
Cheers
Tony
"Fletcher Arnold" <fl****@home.com> wrote in message
news:c0**********@sparta.btinternet.com... "Tony Williams" <tw@tcp.invalid> wrote in message news:c0**********@sparta.btinternet.com... I have an Access database that we use as a document index system. The documents can be Word, Excel, pdf's etc I have a command button on a
form that opens the document in whatever program is relevant. The code I use is Private Sub Cmdstart_Click() On Error GoTo Err_Handler
Dim strPath As String If IsNull(DocURLtxt.Value) Then strmsg = "You must enter the Document URL to use this
function '" & DocURLtxt.Value _ & "'." & vbCrLf & "Please enter the URL for " _ & "this document now." If MsgBox(strmsg, vbQuestion) = vbOK Then Exit Sub End If End If strPath = Nz(Me!DocURLtxt, "") If Len(strPath) > 0 Then StartFile strPath, WIN_NORMAL End If
Exit_Handler: Exit Sub
Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler
End Sub
However I would like another button that actually sends the document straight to print without having to open the document in the
application. For example if we have the path to a Word document I want the command button to send the document to a printer, or at least open a print dialog box without opening the document in Word first and then printing from there. Is this possible?
As ever TIA Tony Williams
Hi Tony Yes it's possible, but you could spend a while writing the code. Here are
a few thoughts:
The MS Office documents (Word, Excel, etc) would best be printed out using automation. For example, you create a hidden instance of word, open the document and print it out. Because these applications have
well-documented object models, the coding for this is fairly standard and works well where Office is installed on each PC.
You may need a different approach to non-Office files such as .pdf where I believe you can pass the name of the file, and a printout command in the switches used for the .exe file.
The following is a start - and is only intended as a start. Here, each
time you print out, a new instance of Word or Excel is started and then shut down. If speed were to become an issue, then you could change this to
keep Word running (but would you really want many additional Office
applications open considering you're already using Access?)
Copy the following into a module called modPrintout or whatever:
Public Sub PrintFile(strPath As String)
On Error GoTo Err_Handler
Select Case Right$(strPath, 4)
Case ".doc" PrintWord strPath
Case ".xls" PrintExcel strPath
Case Else MsgBox "File=""" & strPath & """" & vbCrLf & _ "This application cannot automatically" & vbCrLf & _ "print files of this type.", vbExclamation, _ "Unknown File Type"
End Select
Exit_Handler: Exit Sub
Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler
End Sub
Private Sub PrintWord(strPath As String)
On Error GoTo Err_Handler
Dim wdApp As Object Dim wdDoc As Object
Set wdApp = CreateObject("Word.Application")
Set wdDoc = wdApp.Documents.Open(strPath)
wdDoc.PrintOut False
Exit_Handler:
On Error Resume Next
wdDoc.Close
Set wdDoc = Nothing
wdApp.Quit
Set wdApp = Nothing
Exit Sub
Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler
End Sub
Private Sub PrintExcel(strPath As String)
On Error GoTo Err_Handler
Dim xlApp As Object Dim xlWbk As Object
Set xlApp = CreateObject("Excel.Application")
Set xlWbk = xlApp.Workbooks.Open(strPath)
xlWbk.PrintOut
Exit_Handler:
On Error Resume Next
xlWbk.Close
Set xlWbk = Nothing
xlApp.Quit
Set xlApp = Nothing
Exit Sub
Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler
End Sub
Fletcher can I create this as a function called say Printdoc and then put
=Printdoc in the Onclick of my button? If so how do I change the Publicsub
to a function?
TIA
Tony Williams
"Tony Williams" <tw@tcp.invalid> wrote in message
news:c1**********@hercules.btinternet.com... Thanks Fletcher I'm going to try that. As most of the files will be from Office applications it seems the user is quite happy that for others like pdfs they open Acrobat and then print. Again as ever a BIG thank you and I'll come back if there are any problems if I may. Cheers Tony "Fletcher Arnold" <fl****@home.com> wrote in message news:c0**********@sparta.btinternet.com... "Tony Williams" <tw@tcp.invalid> wrote in message news:c0**********@sparta.btinternet.com... I have an Access database that we use as a document index system. The documents can be Word, Excel, pdf's etc I have a command button on a form that opens the document in whatever program is relevant. The code I
use is Private Sub Cmdstart_Click() On Error GoTo Err_Handler
Dim strPath As String If IsNull(DocURLtxt.Value) Then strmsg = "You must enter the Document URL to use this function '" & DocURLtxt.Value _ & "'." & vbCrLf & "Please enter the URL for " _ & "this document now." If MsgBox(strmsg, vbQuestion) = vbOK Then Exit Sub End If End If strPath = Nz(Me!DocURLtxt, "") If Len(strPath) > 0 Then StartFile strPath, WIN_NORMAL End If
Exit_Handler: Exit Sub
Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler
End Sub
However I would like another button that actually sends the document straight to print without having to open the document in the application. For example if we have the path to a Word document I want the command button to send the document to a printer, or at least open a print dialog box without opening the document in Word first and then printing from
there. Is this possible?
As ever TIA Tony Williams
Hi Tony Yes it's possible, but you could spend a while writing the code. Here
are a few thoughts:
The MS Office documents (Word, Excel, etc) would best be printed out
using automation. For example, you create a hidden instance of word, open the document and print it out. Because these applications have well-documented object models, the coding for this is fairly standard and works well
where Office is installed on each PC.
You may need a different approach to non-Office files such as .pdf where
I believe you can pass the name of the file, and a printout command in the switches used for the .exe file.
The following is a start - and is only intended as a start. Here, each time you print out, a new instance of Word or Excel is started and then shut down. If speed were to become an issue, then you could change this to keep Word running (but would you really want many additional Office applications open considering you're already using Access?)
Copy the following into a module called modPrintout or whatever:
Public Sub PrintFile(strPath As String)
On Error GoTo Err_Handler
Select Case Right$(strPath, 4)
Case ".doc" PrintWord strPath
Case ".xls" PrintExcel strPath
Case Else MsgBox "File=""" & strPath & """" & vbCrLf & _ "This application cannot automatically" & vbCrLf & _ "print files of this type.", vbExclamation, _ "Unknown File Type"
End Select
Exit_Handler: Exit Sub
Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler
End Sub
Private Sub PrintWord(strPath As String)
On Error GoTo Err_Handler
Dim wdApp As Object Dim wdDoc As Object
Set wdApp = CreateObject("Word.Application")
Set wdDoc = wdApp.Documents.Open(strPath)
wdDoc.PrintOut False
Exit_Handler:
On Error Resume Next
wdDoc.Close
Set wdDoc = Nothing
wdApp.Quit
Set wdApp = Nothing
Exit Sub
Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler
End Sub
Private Sub PrintExcel(strPath As String)
On Error GoTo Err_Handler
Dim xlApp As Object Dim xlWbk As Object
Set xlApp = CreateObject("Excel.Application")
Set xlWbk = xlApp.Workbooks.Open(strPath)
xlWbk.PrintOut
Exit_Handler:
On Error Resume Next
xlWbk.Close
Set xlWbk = Nothing
xlApp.Quit
Set xlApp = Nothing
Exit Sub
Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler
End Sub
"Tony Williams" <tw@tcp.invalid> wrote in message
news:c1**********@sparta.btinternet.com... Fletcher can I create this as a function called say Printdoc and then put =Printdoc in the Onclick of my button? If so how do I change the Publicsub to a function? TIA Tony Williams
I would not change it to a function. If the button was named "cmdPrint",
here is the code I might have behind the button's OnClick event:
Private Sub cmdPrint_Click()
On Error GoTo Err_Handler
If Not IsNull(Me!DocPath) Then
PrintFile(Me!DocPath)
End If
Exit_Handler:
Exit Sub
Err_Handler:
MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number
Resume Exit_Handler
End Sub
Why use a function? I guess you like simply writing =DoSomething() into the
properties window for the button, but why? I never do that. For one thing,
you don't find out about any errors until you press the button - so that if
you had written =PryntDoc() by mistake this might go un-noticed whereas if
you had written it in code you would immediately see a compile error. Also,
what happens when you change parameters?
All this is not a sub versus function argument, by all means convert it to a
function but unless the function returns a meaningful value (eg whether the
doc printed without error), I don't see any point unless you want to avoid
code-writing which is a bit corner-cutting.
Fletcher
Thanks Fletcher for the sound advice. It isn't corner cutting it's just that
my 59 year old brain has difficulty getting around functions and modules! I
have tried reading Microsoft's Running Access 2000 and Que's Using Access
2000 and a couple of others but I find it both books don't really explain
the relationship between the two and how you should one to make the other
run. Can you suggest any simple 123 steps books I could read. As you will
realise I'm a newbie and totally self taught. Thanks
Tony
"Fletcher Arnold" <fl****@home.com> wrote in message
news:c1**********@hercules.btinternet.com... "Tony Williams" <tw@tcp.invalid> wrote in message news:c1**********@sparta.btinternet.com... Fletcher can I create this as a function called say Printdoc and then
put =Printdoc in the Onclick of my button? If so how do I change the
Publicsub to a function? TIA Tony Williams I would not change it to a function. If the button was named "cmdPrint", here is the code I might have behind the button's OnClick event:
Private Sub cmdPrint_Click()
On Error GoTo Err_Handler
If Not IsNull(Me!DocPath) Then PrintFile(Me!DocPath) End If
Exit_Handler: Exit Sub
Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler
End Sub
Why use a function? I guess you like simply writing =DoSomething() into
the properties window for the button, but why? I never do that. For one
thing, you don't find out about any errors until you press the button - so that
if you had written =PryntDoc() by mistake this might go un-noticed whereas if you had written it in code you would immediately see a compile error.
Also, what happens when you change parameters?
All this is not a sub versus function argument, by all means convert it to
a function but unless the function returns a meaningful value (eg whether
the doc printed without error), I don't see any point unless you want to avoid code-writing which is a bit corner-cutting.
Fletcher
Thanks Fletcher that worked a treat!
Once again I am indebted to you for your help. I've built about three
databases and I think there must be a bit of your coding in everyone!!!
Tony
"Fletcher Arnold" <fl****@home.com> wrote in message
news:c1**********@hercules.btinternet.com... "Tony Williams" <tw@tcp.invalid> wrote in message news:c1**********@sparta.btinternet.com... Fletcher can I create this as a function called say Printdoc and then
put =Printdoc in the Onclick of my button? If so how do I change the
Publicsub to a function? TIA Tony Williams I would not change it to a function. If the button was named "cmdPrint", here is the code I might have behind the button's OnClick event:
Private Sub cmdPrint_Click()
On Error GoTo Err_Handler
If Not IsNull(Me!DocPath) Then PrintFile(Me!DocPath) End If
Exit_Handler: Exit Sub
Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler
End Sub
Why use a function? I guess you like simply writing =DoSomething() into
the properties window for the button, but why? I never do that. For one
thing, you don't find out about any errors until you press the button - so that
if you had written =PryntDoc() by mistake this might go un-noticed whereas if you had written it in code you would immediately see a compile error.
Also, what happens when you change parameters?
All this is not a sub versus function argument, by all means convert it to
a function but unless the function returns a meaningful value (eg whether
the doc printed without error), I don't see any point unless you want to avoid code-writing which is a bit corner-cutting.
Fletcher
"Tony Williams" <tw@tcp.invalid> wrote in message
news:c1**********@hercules.btinternet.com... Thanks Fletcher that worked a treat! Once again I am indebted to you for your help. I've built about three databases and I think there must be a bit of your coding in everyone!!! Tony
Hi Tony
I'm really pleased you've got it working.
This sort of feedback is what keeps people posting answers!
Many people here like the Access developer's Handbook but I don't think it
is the best starting point for writing code http://www.amazon.com/exec/obidos/tg...88636?v=glance
At a more basic level is the following which I thought was good: http://www.amazon.com/exec/obidos/tg...88636?v=glance
Anyway, definitely have a bookshop browse next time you're in town.
Returning to an earlier point, the decision whether to use a function or a
sub often only amounts to how
you choose to structure your code. The general rule is that functions are
used to return values whereas subs do not.
This distinction is not always true. For example, you could write this:
Public Function SayHi()
MsgBox "Hi"
End Function
More normal, might be a function which returns an actual value, eg:
Public Function GetUserName(strPrompt As String) As String
Dim strName As String
strName = InputBox(strPrompt)
If Len(strName) = 0 Then
strName = "Unknown"
End If
GetUserName = strName
End Function
This you can then call from elsewhere in your code, eg:
strUser = GetUserName("What is your name?")
HTH
Fletcher
Thanks Fletcher Ill have a look at the books you suggest and aim for
Waterstones the next time I get to town(Chester)!
I've printed off your example so that I can keep referring to it, I'll get
there!
Thanks again
Tony
"Fletcher Arnold" <fl****@home.com> wrote in message
news:c1**********@sparta.btinternet.com... "Tony Williams" <tw@tcp.invalid> wrote in message news:c1**********@hercules.btinternet.com... Thanks Fletcher that worked a treat! Once again I am indebted to you for your help. I've built about three databases and I think there must be a bit of your coding in everyone!!! Tony
Hi Tony I'm really pleased you've got it working. This sort of feedback is what keeps people posting answers!
Many people here like the Access developer's Handbook but I don't think it is the best starting point for writing code http://www.amazon.com/exec/obidos/tg...767761-5488636
?v=glance At a more basic level is the following which I thought was good: http://www.amazon.com/exec/obidos/tg...767761-5488636
?v=glance Anyway, definitely have a bookshop browse next time you're in town.
Returning to an earlier point, the decision whether to use a function or a sub often only amounts to how you choose to structure your code. The general rule is that functions are used to return values whereas subs do not.
This distinction is not always true. For example, you could write this:
Public Function SayHi() MsgBox "Hi" End Function
More normal, might be a function which returns an actual value, eg:
Public Function GetUserName(strPrompt As String) As String
Dim strName As String
strName = InputBox(strPrompt)
If Len(strName) = 0 Then strName = "Unknown" End If
GetUserName = strName
End Function
This you can then call from elsewhere in your code, eg:
strUser = GetUserName("What is your name?") HTH
Fletcher
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Chris Bazzie |
last post by:
I am using MS Access to index documents (in this case material safety
data sheets), to track what departments they are used in, and to allow
users to browse the actual documents that meet some...
|
by: Stefania Scott |
last post by:
I am trying to print a word document from Access. The code I've
written works well in my computer but does not in the one were it is
needed.
Here the piece of code:
'doc path
strObjectPath =...
|
by: cyranoVR |
last post by:
This is the approach I used to automate printing of Microsoft Access
reports to PDF format i.e. unattended and without annoying "Save As..."
dialogs, and - more importantly - without having to use...
|
by: cybertof |
last post by:
Hello,
Is there a way to easily print a .pdf file to the printer ?
(without an external component)
Thanks.
|
by: Ryan Gregg |
last post by:
I've got a dot matrix printer that I need to print a line at a time to.
This is being used for an audit log on an application and every event
that occurs needs to print out right as it occurs.
...
|
by: Russ |
last post by:
To ASP.NET printing experts:
My Asp.net web form needs to print some reports at the client side.
I've been trying to research this and find some confusing and
conflicting information in previous...
|
by: dashyone |
last post by:
Hello,
I am using the ShellExecute feature in VBA to print files with various
types. This feature will open documents in its native format and print
them before closing out. I am using the MS...
|
by: belinda |
last post by:
I have used the ff command but only get the date printout and have no clue whats wrong:
'Printing function
' - opening a Word template with bookmarks
' - read bookmarks list from template and...
|
by: nikhilgargi |
last post by:
Requirement:
I need to provide printing capability in a C# desktop application that I am developing
The documents that need to be printed can be in Rich Text Format (RTF) or HTML. Custom...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |