Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Formatting output
I am using a response.write to test the formatting of the output.  I am
supposed to get this:
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
DTSTART:20051022T090000Z
DTEND:20051022T090000Z
LOCATION;ENCODING=QUOTED-PRINTABLE:Library
UID:20051022T090000ZI-request
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:test
SUMMARY;ENCODING=QUOTED-PRINTABLE:I-request
PRIORITY:3
END:VEVENT
END:VCALENDAR

But instead I get this:
BEGIN:VCALENDAR VERSION:1.0 BEGIN:VEVENT DTSTART:20051022T090000Z
DTEND:20051022T090000Z LOCATION;ENCODING=QUOTED-PRINTABLE:Library
UID:20051022T090000ZI-request DESCRIPTION;ENCODING=QUOTED-PRINTABLE:test
SUMMARY;ENCODING=QUOTED-PRINTABLE:I-request PRIORITY:3 END:VEVENT
END:VCALENDAR

I am sure I am missing something very simple, but I can't figure out what I
am doing wrong.  Here is the code:
strvCalendar = "BEGIN:VCALENDAR" & vbCrLf & _
"VERSION:1.0" & vbCrLf & _
"BEGIN:VEVENT" & vbCrLf & _
"DTSTART:" & strStart  & vbCrLf & _
"DTEND:" & strStart  & vbCrLf & _
"LOCATION;ENCODING=QUOTED-PRINTABLE:" & strLocation & vbCrLf & _
"UID:" & strStart & strSubject & vbCrLf & _
"DESCRIPTION;ENCODING=QUOTED-PRINTABLE:" & strDescription & vbCrLf & _
"SUMMARY;ENCODING=QUOTED-PRINTABLE:" & strSubject & vbCrLf & _
"PRIORITY:3" & vbCrLf & _
"END:VEVENT" & vbCrLf & _
"END:VCALENDAR" & vbCrLf

Any ideas?
TIA!!!



Report this thread to moderator Post Follow-up to this message
Old Post
Tom Petersen
03-31-05 01:55 AM


Re: Formatting output
If you do a view-source, you'll see the format you're after.  Remember
though, HTML doesn't care about line breaks in the source.  If you want a
line break to appear in your browser, you have to use the <br> tag or a
block level tag like <div> or <p> or something.

Ray at work

"Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
news:OCRg11WNFHA.3144@tk2msftngp13.phx.gbl...
> I am using a response.write to test the formatting of the output.  I am
> supposed to get this:
> BEGIN:VCALENDAR
> VERSION:1.0
> BEGIN:VEVENT
> DTSTART:20051022T090000Z
> DTEND:20051022T090000Z
> LOCATION;ENCODING=QUOTED-PRINTABLE:Library
> UID:20051022T090000ZI-request
> DESCRIPTION;ENCODING=QUOTED-PRINTABLE:test
> SUMMARY;ENCODING=QUOTED-PRINTABLE:I-request
> PRIORITY:3
> END:VEVENT
> END:VCALENDAR
>
> But instead I get this:
>  BEGIN:VCALENDAR VERSION:1.0 BEGIN:VEVENT DTSTART:20051022T090000Z
> DTEND:20051022T090000Z LOCATION;ENCODING=QUOTED-PRINTABLE:Library
> UID:20051022T090000ZI-request DESCRIPTION;ENCODING=QUOTED-PRINTABLE:test
> SUMMARY;ENCODING=QUOTED-PRINTABLE:I-request PRIORITY:3 END:VEVENT
> END:VCALENDAR
>
> I am sure I am missing something very simple, but I can't figure out what
I
> am doing wrong.  Here is the code:
> strvCalendar = "BEGIN:VCALENDAR" & vbCrLf & _
>      "VERSION:1.0" & vbCrLf & _
>      "BEGIN:VEVENT" & vbCrLf & _
>      "DTSTART:" & strStart  & vbCrLf & _
>      "DTEND:" & strStart  & vbCrLf & _
>      "LOCATION;ENCODING=QUOTED-PRINTABLE:" & strLocation & vbCrLf & _
>      "UID:" & strStart & strSubject & vbCrLf & _
>      "DESCRIPTION;ENCODING=QUOTED-PRINTABLE:" & strDescription & vbCrLf &
_
>      "SUMMARY;ENCODING=QUOTED-PRINTABLE:" & strSubject & vbCrLf & _
>      "PRIORITY:3" & vbCrLf & _
>      "END:VEVENT" & vbCrLf & _
>      "END:VCALENDAR" & vbCrLf
>
> Any ideas?
> TIA!!!
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Ray Costanzo [MVP]
03-31-05 01:55 AM


Re: Formatting output
"Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
news:OCRg11WNFHA.3144@tk2msftngp13.phx.gbl...
> I am using a response.write to test the formatting of the output.  I am
> supposed to get this:
> BEGIN:VCALENDAR
> VERSION:1.0
> BEGIN:VEVENT
> DTSTART:20051022T090000Z
> DTEND:20051022T090000Z
> LOCATION;ENCODING=QUOTED-PRINTABLE:Library
> UID:20051022T090000ZI-request
> DESCRIPTION;ENCODING=QUOTED-PRINTABLE:test
> SUMMARY;ENCODING=QUOTED-PRINTABLE:I-request
> PRIORITY:3
> END:VEVENT
> END:VCALENDAR
>
> But instead I get this:
>  BEGIN:VCALENDAR VERSION:1.0 BEGIN:VEVENT DTSTART:20051022T090000Z
> DTEND:20051022T090000Z LOCATION;ENCODING=QUOTED-PRINTABLE:Library
> UID:20051022T090000ZI-request DESCRIPTION;ENCODING=QUOTED-PRINTABLE:test
> SUMMARY;ENCODING=QUOTED-PRINTABLE:I-request PRIORITY:3 END:VEVENT
> END:VCALENDAR
>
> I am sure I am missing something very simple, but I can't figure out what
I
> am doing wrong.  Here is the code:
> strvCalendar = "BEGIN:VCALENDAR" & vbCrLf & _
>      "VERSION:1.0" & vbCrLf & _
>      "BEGIN:VEVENT" & vbCrLf & _
>      "DTSTART:" & strStart  & vbCrLf & _
>      "DTEND:" & strStart  & vbCrLf & _
>      "LOCATION;ENCODING=QUOTED-PRINTABLE:" & strLocation & vbCrLf & _
>      "UID:" & strStart & strSubject & vbCrLf & _
>      "DESCRIPTION;ENCODING=QUOTED-PRINTABLE:" & strDescription & vbCrLf &
_
>      "SUMMARY;ENCODING=QUOTED-PRINTABLE:" & strSubject & vbCrLf & _
>      "PRIORITY:3" & vbCrLf & _
>      "END:VEVENT" & vbCrLf & _
>      "END:VCALENDAR" & vbCrLf
>
> Any ideas?
> TIA!!!

strvCalendar = Replace(strvCalendar ,vbCrLf,"<br>")



Report this thread to moderator Post Follow-up to this message
Old Post
McKirahan
03-31-05 01:55 AM


Re: Formatting output
>I am sure I am missing something very simple, but I can't figure out what I
>am doing wrong.  Here is the code:
>strvCalendar = "BEGIN:VCALENDAR" & vbCrLf & _

VbCrLf isn't recognized in HTML.  Use HTML tags, such as <p></p> or
<br> to format HTML code.

Or...  Use a <pre></pre> tag to deliver the text as formatted.

Check an HTML group for details if you're unfamiliar with these tags.

Jeff

Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Cochran
03-31-05 08:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:57 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.